@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

:root {
  /* 🎨 Cores */
  --primary-blue: #0d6efd;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f5f6fa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
main {
  margin: 20px;
}

.container {
  display: flex;
  height: fit-content;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;

  padding: 10px;
}

form {
  display: flex;
  flex-direction: column;
}
/* GRUPOS DE INPUT */
.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-side {
  flex: 1;
  padding: 30px 40px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.form-side h2 {
  font-size: 26px;
  color: #838383;
  font-weight: 600;
  margin-bottom: 20px;
  width: 100%;
}
.logo {
  display: none;
}
strong {
  color: var(--primary-blue);
  font-weight: 700;
}
.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.input-group label {
  font-weight: 500;
  margin-bottom: 6px;
  color: #444;
  font-size: 15px;
}
.input-group input {
  padding: 12px 14px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  transition: all 0.3s ease;
  outline: none;
}
/* EFEITOS DE FOCO */
.input-group input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.25);
}
/* PLACEHOLDER */
.input-group input::placeholder {
  color: #aaa;
}
.strong-checkbox {
  color: var(--primary-blue);
  font-weight: 700;
}
/* BOTÃO DE ENVIO */
button {
  margin-top: 15px;
  background-color: #a3c23e;
  color: white;
  border: none;
  padding: 14px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
button:hover {
  background-color: var(--primary-blue);
}

button:disabled {
  background-color: #b5b5b5;
  color: #f0f0f0;
  cursor: not-allowed;
  opacity: 0.7;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

button:disabled:hover {
  background-color: #b5b5b5;
}

.right-side {
  flex: 1.5;
  background: linear-gradient(135deg, #086ad3, #0d6efd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 22px;
  border-radius: 25px;
}
.link-home-img {
  display: flex;
  justify-content: center;
}
.link-logo-img {
  display: flex;
  justify-content: start;
}

footer {
  display: flex;
  flex-direction: column;
  background: #0d6efd;
  width: 100%;
  color: white;
  padding: 80px;
}
.footer-section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.footer-div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
a {
  color: white;
  text-decoration: none;
}
.social-img {
  filter: invert(100%);
}

/* POPUP MODAL */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.popup.hidden {
  opacity: 0;
  pointer-events: none;
}

.popup-content {
  background: #fff;
  padding: 30px 25px;
  border-radius: 15px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 400px;
  width: 90%;
  animation: fadeInUp 0.3s ease;
}

.popup-content h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #2b2b2b;
}

.popup-content p {
  color: #555;
  margin-bottom: 20px;
}

.popup-content button {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.popup-content button:hover {
  background-color: #0056b3;
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== Animação de entrada suave ===== */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  animation: fadeInUp 0.8s ease forwards;
}

.right-side {
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}

.form-side {
  animation: fadeInUp 1s ease 0.1s forwards;
  opacity: 0;
}

@media (max-width: 900px) {
  main {
    margin: 0px;
  }
  .container {
    flex-direction: column;
    width: 100%;
    min-height: fit-content;
    border-radius: 0px;
    margin-bottom: 0px;
    margin-top: 0px;
  }

  .right-side {
    height: fit-content;
    font-size: 18px;
  }
  img-container {
    object-fit: cover;
  }
  .form-side h2 {
    width: 100%;
    border-radius: 0px;
  }

  .form-side {
    padding: 40px 20px;
  }

  .footer {
    padding: 0px;
    margin: 0px;
    width: fit-content;
  }
  footer {
    padding: 20px;
  }

  .footer-section {
    flex-direction: column;
    gap: 20px;
  }
  .footer-div {
    gap: 10px;
    margin-bottom: 10px;
  }
  .input-group {
    width: 100%;
  }
  .social-media {
    flex-direction: column;
  }

  .social-img {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }

  .logo {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
  }
  .left-form {
    width: fit-content;
    padding: 0;
  }
  .input-group input,
  select,
  .checkbox-group {
    width: 100%;
  }
}
