/* ==== Corrige o zoom da imagem de fundo ==== */
#cadastro {
  position: relative;
  background: none;
  margin-top: 2%;
  overflow: hidden;
}

#cadastro::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("/assets/imgs/imageLogin.jpg") center/cover no-repeat;
  z-index: -1;
  transform: scale(1.05);
}

#cadastro .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1;
}


#cadastro .container {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}


nav ul li a:hover {
  color: #005de8;
}

nav ul li a {
  color: #000000;
}

nav ul li a:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: #004aad;
  transition: all 0.3s;
}

/* ======= CONTAINER E FORM ======= */
.login-container {
  width: 100%;
  max-width: 900px;
}

.login-form {
  background: #fff;
  padding: 50px 60px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  width: 100%;
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ======= CABEÇALHO DO FORM ======= */
.login-form h2 {
  text-align: center;
  color: #004aad;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.login-subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 35px;
  font-size: 1rem;
}

/* ======= FORMULÁRIO EM GRID ======= */
.login-form form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 25px;
}

/* ======= INPUTS E LABELS ======= */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 6px;
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid #ccc;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0074e4;
  box-shadow: 0 0 8px rgba(0, 116, 228, 0.3);
  outline: none;
}

/* Checkboxes */
.form-group.form-check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  grid-column: span 2;
}

.form-group.form-check input {
  width: auto;
  accent-color: #0074e4;
}

/* Expandir grupos específicos */
.form-group:nth-child(1),
.form-group:nth-child(3),
.form-group:nth-child(6),
.form-group:nth-child(8),
.form-group:nth-child(12),
.form-group:nth-child(17),
.login-form button,
.login-form .login-link {
  grid-column: span 2;
}

/* Textarea */
.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.password-group {
  position: relative;
}

.toggle-password {
  position: absolute;
  top: 45px;
  right: 15px;
  transform: translateY(-20%);
  cursor: pointer;
  color: #999;
}

/* ======= BOTÃO ======= */
.botao {
  display: inline-block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #0074e4, #004aad);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.botao:hover {
  background: linear-gradient(90deg, #005de8, #003f91);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 74, 173, 0.3);
}

/* ======= LINK FINAL ======= */
.login-link {
  text-align: center;
  color: #555;
  margin-top: 10px;
  font-size: 0.95rem;
}

.login-link a {
  color: #004aad;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-link a:hover {
  color: #002f75;
  text-decoration: underline;
}

/* ======= RESPONSIVIDADE ======= */
@media (max-width: 768px) {
  #cadastro {
    padding: 80px 10px;
  }

  .login-form {
    padding: 30px 20px;
  }

  .login-form form {
    grid-template-columns: 1fr;
  }

  .form-group.form-check,
  .form-group:nth-child(1),
  .form-group:nth-child(3),
  .form-group:nth-child(6),
  .form-group:nth-child(8),
  .form-group:nth-child(12),
  .form-group:nth-child(17),
  .login-form button,
  .login-form .login-link {
    grid-column: span 1;
  }

  .login-form h2 {
    font-size: 1.5rem;
  }

  .login-subtitle {
    font-size: 0.9rem;
  }
}