/* ============================================================
   FERRESYS - Estilos del Login
   ============================================================ */

body.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(14, 116, 144, 0.35) 0%, transparent 42%),
    radial-gradient(circle at 82% 82%, rgba(34, 211, 238, 0.12) 0%, transparent 40%),
    linear-gradient(135deg, #0B1220 0%, #050A12 100%);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* Grilla tecnológica de fondo */
body.login-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}

body.login-body::after {
  content: '';
  position: absolute;
  bottom: -180px;
  right: -140px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.login-container {
  background: white;
  padding: 44px 40px;
  border-radius: 24px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-top: 4px solid var(--acento-claro);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(34, 211, 238, 0.05);
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.login-logo {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo img {
  display: block;
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 0 auto 10px;
}

.login-logo h1 {
  font-size: 27px;
  font-weight: 800;
  color: var(--azul-oscuro);
  margin-bottom: 4px;
  letter-spacing: 0.4px;
}

.login-logo .subtitle {
  color: var(--gris-500);
  font-size: 13px;
  letter-spacing: 0.3px;
}

.login-error {
  background: var(--rojo-claro);
  color: #991B1B;
  padding: 12px 16px;
  border-radius: var(--radio-md);
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
  align-items: center;
  gap: 8px;
}

.login-error.show {
  display: flex;
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: var(--naranja);
  color: white;
  border-radius: var(--radio-md);
  font-size: 15px;
  font-weight: 700;
  transition: all var(--transicion);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.btn-login:hover:not(:disabled) {
  background: var(--naranja-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(14, 116, 144, 0.4);
}

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--gris-500);
  font-size: 12px;
}

.login-footer strong {
  color: var(--azul-oscuro);
  letter-spacing: 0.4px;
}

@media (max-width: 480px) {
  .login-container {
    padding: 32px 24px;
  }
  
  .login-logo h1 {
    font-size: 22px;
  }
}
