/* css/login.css */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', 'Roboto', sans-serif;
  background: url('../img/bg-login.jpg') no-repeat center center fixed; /* Mantiene la imagen de fondo existente */
  background-size: cover;
  height: 100vh;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: #333;
}

.form-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  border-radius: 16px;
  width: 380px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.logo-container {
  text-align: center;
  margin-bottom: 1.5rem;
}

.logo {
  width: 40%;
  height: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border-radius: 12px;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.form-container h1 {
  color: #2d3748;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-shadow: none;
}

.subtitle {
  color: #718096;
  font-size: 14px;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: none;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #4a5568;
  font-size: 14px;
  font-weight: 500;
  text-shadow: none;
}

.form-group input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.6rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #007BFF;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
  background-color: white;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 40px;
  color: #a0aec0;
  width: 18px;
  height: 18px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 40px;
  color: #a0aec0;
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.form-group .checkbox {
  display: flex;
  align-items: center;
}

.form-group .checkbox input {
  width: auto;
  margin-right: 0.5rem;
  accent-color: #007BFF;
}

.checkbox label {
  margin-bottom: 0;
  font-size: 14px;
  color: #4a5568;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.forgot-link {
  color: #007BFF;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  text-shadow: none;
}

.forgot-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background-color: #bababa; /* Gris oxford claro */
  border: none;
  border-radius: 10px;
  color: #000000; /* Letras negras */
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background-color: #000000; /* Negro al pasar el mouse */
  color: #ffffff; /* Letras blancas al pasar el mouse */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.form-footer {
  text-align: center;
  margin-top: 2rem;
  color: #718096;
  font-size: 12px;
  text-shadow: none;
}

.error {
  color: #e53e3e;
  text-align: center;
  margin-bottom: 1rem;
  background-color: #fff5f5;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #feb2b2;
  text-shadow: none;
}

.success {
  background: #e6ffed;
  color: #0a662e;
  border: 1px solid #0a662e;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  text-align: center;
  text-shadow: none;
}

/* Animaciones sutiles */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-container {
  animation: fadeIn 0.5s ease forwards;
}

/* Media queries para responsividad */
@media (max-width: 480px) {
  .form-container {
    width: 90%;
    padding: 2rem;
  }
}