/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
}

.login-container {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  width: 360px;
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-container h2 {
  margin-bottom: 24px;
  color: #0a3d62;
  text-align: center;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1e272e;
  font-size: 0.95rem;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1.8px solid #d1d8e0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #0a3d62;
  box-shadow: 0 0 8px rgba(10, 61, 98, 0.3);
  outline: none;
}

/* Feedback de erro nos inputs */
input.error {
  border-color: #d63031;
  box-shadow: 0 0 6px rgba(214, 48, 49, 0.4);
}

#error-message {
  color: #d63031;
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: none;
}

/* Botão */
button,
.btn-acessar {
  width: 100%;
  background-color: #0a3d62;
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button:hover,
.btn-acessar:hover {
  background-color: #065082;
  box-shadow: 0 4px 12px rgba(6, 80, 130, 0.3);
}

.btn-container {
  text-align: center;
  margin-top: 10px;
}

/* Link para "Esqueci minha senha" */
.forgot-password {
  display: block;
  margin-top: 12px;
  text-align: right;
  font-size: 0.85rem;
  color: #0a3d62;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-password:hover {
  color: #065082;
  text-decoration: underline;
}

/* Estilo para o checkbox "Lembrar-me" */
.remember-container {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.remember-container input[type="checkbox"] {
  margin-right: 8px;
}

.remember-container label {
  margin: 0;
  font-weight: normal;
  font-size: 0.85rem;
  color: #333;
}

/* Responsividade extra para mobile */
@media (max-width: 450px) {
  .login-container {
    width: 90%;
    padding: 30px 20px;
  }
}
