/* Login WR Aire Acondicionado — Diseño moderno (glass + imagen lateral) */
/* Fuente Poppins ya se carga desde login.php */

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 10% 10%, #0a2a4e 0%, #061f3b 35%, #041629 70%, #031221 100%);
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
  color: #fff;
}

.login-container {
  display: grid;
  grid-template-columns: 60% 40%;
  min-height: 100vh;
}

/* Lado izquierdo: imagen con overlay azul translúcido */
.login-left {
  position: relative;
  background: url('../img/login-side.jpg') no-repeat center center / cover;
}

.login-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 60, 120, 0.5);
}

/* Lado derecho: centrado del formulario */
.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Tarjeta con efecto glass */
.login-card {
  width: 100%;
  max-width: 450px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 40px 50px;
  color: #fff;
  animation: slideIn 0.8s ease forwards;
}

.login-card img {
  display: block;
  margin: 0 auto;
}

.login-card h2 {
  font-weight: 600;
}

.login-card p {
  color: #e6f2ff;
}

/* Inputs estilo glass y foco brillante */
.form-control {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 10px;
  color: #fff;
  padding: 0.65rem 0.9rem;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
  outline: none;
  border: 1px solid #00c6ff;
  box-shadow: 0 0 10px rgba(0, 198, 255, 0.4);
  background: rgba(255, 255, 255, 0.25);
}

.form-label {
  color: #e6f2ff;
}

/* Checkbox y link */
.form-check-input:checked {
  background-color: #00c6ff;
  border-color: #00c6ff;
}

.login-card a {
  color: #00c6ff;
}

.login-card a:hover {
  color: #80e6ff;
}

/* Botón con gradiente animado */
.btn-login {
  background: linear-gradient(90deg, #0077ff, #00c6ff);
  border: none;
  border-radius: 10px;
  padding: 10px;
  width: 100%;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: linear-gradient(90deg, #005fcc, #009edc);
  transform: translateY(-2px);
}

/* Animación de entrada del formulario */
@keyframes slideIn {
  0% { opacity: 0; transform: translateX(50px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Animación para mensajes de error (si existe .shake) */
.shake { animation: shake 0.25s ease-in-out 0s 2; }
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

/* Responsivo */
@media (max-width: 992px) {
  .login-container { grid-template-columns: 55% 45%; }
}

@media (max-width: 768px) {
  .login-container { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right { padding: 1.5rem; }
  .login-card { padding: 30px 36px; }
}