/* ======== SEÇÃO DE LOGIN ======== */
#login {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-image: url("/assets/imgs/imageLogin.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

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

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 CENTRAL ======== */
.login-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* ======== CARD DO FORMULÁRIO ======== */
.login-form {
  background: rgba(255, 255, 255, 0.97);
  padding: 50px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 420px;
  animation: fadeInUp 0.6s ease forwards;
}

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

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

/* ======== TÍTULO E SUBTÍTULO ======== */
.login-form h2 {
  text-align: center;
  margin-bottom: 10px;
  color: #004aad;
  font-size: 1.9rem;
}

.login-form i {
  margin-right: 8px;
}

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

/* ======== CAMPOS ======== */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.toggle-password {
    position: absolute;
    top: 48px;
    right: 15px;
    cursor: pointer;
    color: #888;
    z-index: 3;
}

.form-group input:focus {
  border-color: #004aad;
  box-shadow: 0 0 6px rgba(0, 74, 173, 0.3);
}

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

.botao:hover {
  background: linear-gradient(90deg, #005de8, #003f91);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* ======== LINK DE CADASTRO ======== */
.login-link {
  text-align: center;
  margin-top: 20px;
  color: #555;
}

.forgot-password-link {
  text-align: center;
  margin-top: 10px;
}

.forgot-password-link a {
  color: #004aad;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.forgot-password-link a:hover {
  color: #0074e4;
  text-decoration: underline;
}

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

.login-link a:hover {
  color: #0074e4;
  text-decoration: underline;
}

/* ======== RESPONSIVO ======== */
@media (max-width: 768px) {

  #login {
    margin-top: 20px;
  }

  .login-form {
    padding: 35px 25px;
    max-width: 90%;
  }

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

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