/* ==============================================================================
   KORI FILMS CONTROL — Auth & Anti-Brute-Force Styles
   ============================================================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}

/* Fondo ambiental con gradiente sutil y glow */
.auth-bg-ambient {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 450px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(99, 102, 241, 0.08) 50%, transparent 75%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: rgba(17, 20, 29, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* ------------------------------------------------------------------------------
   BOTÓN VOLVER / CERRAR (X)
   ------------------------------------------------------------------------------ */
.auth-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.auth-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: scale(1.06);
}

.auth-close-btn:active {
  transform: scale(0.94);
}

.auth-close-btn:focus-visible {
  outline: 2px solid var(--accent-matcha);
  outline-offset: 2px;
}

.auth-brand-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo-symbol {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--accent-matcha) 0%, var(--accent-kori) 100%);
  border-radius: var(--radius-md);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: 0 0 25px var(--accent-matcha-glow);
}

.auth-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ------------------------------------------------------------------------------
   BANNER DE BLOQUEO ANTI-FUERZA BRUTA (1 MINUTO)
   ------------------------------------------------------------------------------ */

.lockout-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: shake 400ms ease;
}

.lockout-icon {
  color: #f87171;
  flex-shrink: 0;
  margin-top: 2px;
}

.lockout-content {
  flex: 1;
}

.lockout-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fca5a5;
  margin-bottom: 0.25rem;
}

.lockout-desc {
  font-size: 0.78rem;
  color: #fecaca;
  line-height: 1.35;
}

.lockout-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.5);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ------------------------------------------------------------------------------
   INPUTS Y ACCIONES
   ------------------------------------------------------------------------------ */

.password-input-wrapper {
  position: relative;
}

.toggle-password-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}

.toggle-password-btn:hover {
  color: var(--text-main);
}

.auth-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.error-message {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.success-message {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.info-message {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #67e8f9;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.auth-footer code {
  color: var(--text-muted);
  font-family: var(--font-mono);
}
