/* /assets/css/login_styles.css */

/* Reset básico */
* {
  box-sizing: border-box;
}

/* --- FONDO ANIMADO (BODY) - VERSIÓN AZUL MÁS PRESENTE --- */
body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: #334155;

  /* Gradiente con tonos un poco más intensos:
     #dbeafe: Azul suave visible
     #f1f5f9: Gris base
     #e0f2fe: Azul cielo corporativo
     #cbd5e1: Gris azulado más sobrio
  */
  background: linear-gradient(-45deg, #dbeafe, #f1f5f9, #e0f2fe, #cbd5e1);
  
  /* Tamaño ampliado para permitir el movimiento */
  background-size: 400% 400%;
  
  /* Animación: dura 15 segundos y se repite infinitamente */
  animation: gradientBG 15s ease infinite;
}

/* Definición del movimiento del fondo */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Contenedor tipo tarjeta */
.contenedor-login {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 380px;
  text-align: center;
  border-top: 5px solid #0b5e7e; /* Toque de marca en el borde superior */
  position: relative;
}

.logo-login {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

h2 {
  color: #0f172a;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.5rem;
}

.subtitulo {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 30px;
  margin-top: 0;
}

/* Estilos de Inputs */
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  color: #1e293b;
  background-color: #f8fafc;
  transition: all 0.3s ease;
  outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #0b5e7e;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(11, 94, 126, 0.1);
}

/* Contenedor relativo para el password */
.campo-password {
  position: relative;
  width: 100%;
}

/* Icono del ojo */
.campo-password img {
  position: absolute;
  top: 13px; /* Ajuste fino para centrar verticalmente */
  right: 15px;
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  z-index: 2;
}

.campo-password img:hover {
  opacity: 1;
}

/* Botón principal */
button[type="submit"] {
  width: 100%;
  padding: 14px;
  background-color: #0b5e7e; /* Color corporativo AIRCO */
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s;
  margin-top: 10px;
}

button[type="submit"]:hover {
  background-color: #094b65;
}

button[type="submit"]:active {
  transform: scale(0.98);
}

/* Nota inferior */
.nota {
  margin-top: 25px;
  font-size: 12px;
  color: #94a3b8;
  border-top: 1px solid #e2e8f0;
  padding-top: 15px;
}

/* Mensajes de error */
.error-mensaje {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  text-align: left;
}

/* PWA Actions */
.pwa-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-install {
  display: none; /* Se activa vía JS */
  background: #fff;
  color: #0b5e7e;
  border: 1px solid #0b5e7e;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-install:hover {
  background: #f0f9ff;
}

.install-hint {
  display: none;
  font-size: 0.8rem;
  color: #64748b;
  width: 100%;
}