/* ================================================================
   TURING ERP — Login Premium
   Diseño inspirado en Stripe / Linear / Notion / QuickBooks
   Glassmorphism + gradiente financiero + animaciones suaves
   ================================================================ */

:root {
  --ink-900: #0a0e27;
  --ink-800: #111633;
  --ink-700: #1a2040;
  --ink-500: #4b5573;
  --ink-300: #8892b0;
  --ink-100: #ccd6f6;
  --ink-50:  #e6ecff;

  --brand-600: #3d5afe;
  --brand-500: #5468ff;
  --brand-400: #6f82ff;
  --brand-300: #a1b0ff;

  --accent-teal:   #00d1b2;
  --accent-violet: #8b5cf6;
  --accent-amber:  #ffb86b;

  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #ef4444;

  --surface-glass: rgba(255, 255, 255, 0.75);
  --border-glass: rgba(255, 255, 255, 0.4);

  --shadow-sm:  0 1px 2px rgba(10, 14, 39, 0.05);
  --shadow-md:  0 4px 12px rgba(10, 14, 39, 0.08), 0 1px 3px rgba(10, 14, 39, 0.06);
  --shadow-lg:  0 20px 60px rgba(10, 14, 39, 0.15), 0 8px 24px rgba(10, 14, 39, 0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset para la página de login --- */
body.login-page,
body.register-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: #060913 !important;
  background-image:
    radial-gradient(ellipse at top left, rgba(84, 104, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(0, 209, 178, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at center, rgba(139, 92, 246, 0.10) 0%, transparent 75%),
    linear-gradient(135deg, #060913 0%, #0d1020 50%, #060913 100%) !important;
  background-attachment: fixed !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  position: static !important;
  width: 100%;
  height: auto !important;
  z-index: auto !important;
}

.login-page,
.register-page {
  position: static !important;
  overflow: visible !important;
  height: auto !important;
  width: auto !important;
  z-index: auto !important;
  background: none !important;
}

/* Ocultar layout de AdminLTE en login */
body.login-page .wrapper,
body.login-page .content-wrapper,
body.login-page .main-sidebar,
body.login-page .main-footer,
body.login-page .main-header { display: none !important; }

/* Bolas de color flotantes (blur) */
body.login-page::before,
body.login-page::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
body.login-page::before {
  width: 480px; height: 480px;
  top: -120px; left: -120px;
  background: radial-gradient(circle, var(--brand-500), transparent 70%);
  animation: float-1 18s ease-in-out infinite;
}
body.login-page::after {
  width: 560px; height: 560px;
  bottom: -160px; right: -160px;
  background: radial-gradient(circle, var(--accent-teal), transparent 70%);
  animation: float-2 22s ease-in-out infinite;
}
@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 80px) scale(1.1); }
  66% { transform: translate(-40px, 40px) scale(0.95); }
}
@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-70px, -50px) scale(1.08); }
  66% { transform: translate(40px, -80px) scale(0.92); }
}

.auth-grid-overlay {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none; z-index: 1;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8) 0%, transparent 70%);
}

/* LAYOUT */
.auth-shell {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1600px;
  margin: 0 auto;
}

/* En pantallas gigantes, centrar el contenido y escalar un poco */
@media (min-width: 1600px) {
  .auth-shell {
    max-width: 1600px;
  }
  .auth-brand-panel {
    padding: 64px 80px;
  }
  .auth-brand-hero h1 {
    font-size: 56px;
  }
  .auth-brand-hero p {
    font-size: 17px;
    max-width: 480px;
  }
  .auth-card {
    max-width: 480px;
    padding: 52px 48px;
  }
  .auth-card-header h2 { font-size: 32px; }
  .feature-card { padding: 16px 20px; }
  .feature-card .feature-icon { width: 40px; height: 40px; }
  .feature-card .feature-copy strong { font-size: 15px; }
  .feature-card .feature-copy span { font-size: 13px; }
}

@media (min-width: 1920px) {
  .auth-brand-hero h1 {
    font-size: 64px;
  }
  .auth-card {
    max-width: 520px;
  }
}

/* Panel izquierdo: branding */
.auth-brand-panel {
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  min-height: 100vh;
  color: var(--ink-50);
  position: relative;
  animation: fadeSlideRight 0.8s var(--ease-out) both;
}

.auth-brand-header {
  display: flex; align-items: center; gap: 12px;
}
.auth-brand-header .brand-mark {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid; place-items: center;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.auth-brand-header .brand-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  /* logo en colores originales (negro sobre blanco) */
}
.auth-brand-header .brand-name {
  font-size: 18px; font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.2;
}
.auth-brand-header .brand-tag {
  font-size: 11px; color: var(--ink-300);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.auth-brand-hero {
  max-width: 480px;
  animation: fadeSlideUp 1s var(--ease-out) 0.2s both;
}
.auth-brand-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 209, 178, 0.1);
  border: 1px solid rgba(0, 209, 178, 0.25);
  color: var(--accent-teal);
  font-size: 11px; font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.auth-brand-hero .eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 8px var(--accent-teal);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.auth-brand-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: #fff;
}
.auth-brand-hero h1 .accent {
  background: linear-gradient(135deg, var(--brand-400), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.auth-brand-hero p {
  font-size: 16px; line-height: 1.6;
  color: var(--ink-300);
  margin: 0 0 36px;
  max-width: 420px;
}

.feature-grid {
  display: grid; gap: 14px;
  animation: fadeSlideUp 1s var(--ease-out) 0.45s both;
}
.feature-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
}
.feature-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateX(4px);
}
.feature-card .feature-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 16px;
}
.feature-card .feature-icon.blue   { background: rgba(84, 104, 255, 0.15); color: var(--brand-400); }
.feature-card .feature-icon.teal   { background: rgba(0, 209, 178, 0.15); color: var(--accent-teal); }
.feature-card .feature-icon.violet { background: rgba(139, 92, 246, 0.15); color: var(--accent-violet); }
.feature-card .feature-copy { flex: 1; }
.feature-card .feature-copy strong {
  display: block; font-size: 14px;
  color: #fff; margin-bottom: 2px;
  font-weight: 600;
}
.feature-card .feature-copy span {
  font-size: 12px; color: var(--ink-300);
  line-height: 1.4;
}

.auth-brand-footer {
  font-size: 12px; color: var(--ink-500);
  animation: fadeSlideUp 1s var(--ease-out) 0.6s both;
}
.auth-brand-footer a {
  color: var(--ink-300);
  text-decoration: none;
  transition: color 0.2s;
}
.auth-brand-footer a:hover { color: #fff; }

/* Panel derecho: formulario */
.auth-form-panel {
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding: 40px 32px;
  min-height: 100vh;
  animation: fadeSlideLeft 0.8s var(--ease-out) both;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow:
    0 20px 60px rgba(10, 14, 39, 0.25),
    0 8px 24px rgba(10, 14, 39, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 44px 40px;
  animation: cardEntrance 0.9s var(--ease-out) 0.2s both;
}
@keyframes cardEntrance {
  0% { opacity: 0; transform: translateY(20px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card-logo {
  display: none;
  text-align: center;
  margin-bottom: 24px;
}
.auth-card-logo img {
  height: 48px; width: auto;
}

.auth-card-header { margin-bottom: 32px; }
.auth-card-header h2 {
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 8px;
  animation: fadeSlideUp 0.6s var(--ease-out) 0.4s both;
}
.auth-card-header p {
  font-size: 14px; color: var(--ink-500);
  margin: 0; line-height: 1.5;
  animation: fadeSlideUp 0.6s var(--ease-out) 0.5s both;
}

.auth-field {
  margin-bottom: 18px;
  animation: fadeSlideUp 0.5s var(--ease-out) both;
}
.auth-field:nth-of-type(1) { animation-delay: 0.55s; }
.auth-field:nth-of-type(2) { animation-delay: 0.65s; }
.auth-field:nth-of-type(3) { animation-delay: 0.75s; }
.auth-field:nth-of-type(4) { animation-delay: 0.85s; }

.auth-field label {
  display: block;
  font-size: 13px; font-weight: 500;
  color: var(--ink-700);
  margin-bottom: 6px;
  letter-spacing: 0.1px;
}

.auth-input-wrap { position: relative; }
.auth-input-wrap .leading-icon {
  position: absolute; left: 14px;
  top: 50%; transform: translateY(-50%);
  color: var(--ink-300); font-size: 15px;
  pointer-events: none;
  transition: color 0.25s;
  z-index: 2;
}
.auth-input-wrap .trailing-icon {
  position: absolute; right: 14px;
  top: 50%; transform: translateY(-50%);
  color: var(--ink-300); font-size: 15px;
  cursor: pointer;
  padding: 4px; border-radius: 4px;
  transition: color 0.2s;
  z-index: 2;
}
.auth-input-wrap .trailing-icon:hover { color: var(--brand-500); }

.auth-input,
.auth-input-wrap input.form-control,
.auth-input-wrap input[type="text"],
.auth-input-wrap input[type="password"],
.auth-input-wrap input[type="email"] {
  width: 100% !important;
  height: 48px !important;
  padding: 0 16px 0 42px !important;
  font-size: 14.5px !important;
  font-family: inherit !important;
  color: var(--ink-900) !important;
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1.5px solid rgba(10, 14, 39, 0.08) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: inset 0 1px 2px rgba(10, 14, 39, 0.04) !important;
  transition: all 0.25s var(--ease-out) !important;
  box-sizing: border-box !important;
  outline: none !important;
}
.auth-input-wrap input.form-control:hover,
.auth-input-wrap input:hover {
  border-color: rgba(10, 14, 39, 0.18) !important;
  background: rgba(255, 255, 255, 0.8) !important;
}
.auth-input-wrap input.form-control:focus,
.auth-input-wrap input:focus {
  border-color: var(--brand-500) !important;
  background: #fff !important;
  box-shadow:
    0 0 0 4px rgba(84, 104, 255, 0.12),
    inset 0 1px 2px rgba(10, 14, 39, 0.04) !important;
}
.auth-input-wrap:focus-within .leading-icon {
  color: var(--brand-500);
}
.auth-input-wrap input::placeholder {
  color: var(--ink-300) !important;
  font-weight: 400 !important;
}

/* Botón primario */
.auth-btn-primary {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  height: 50px !important;
  padding: 0 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  letter-spacing: 0.1px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-500) 50%, #7d8eff 100%) !important;
  background-size: 200% 200% !important;
  background-position: 0% 50% !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  cursor: pointer !important;
  box-shadow:
    0 4px 14px rgba(84, 104, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transition: all 0.3s var(--ease-out) !important;
  position: relative !important;
  overflow: hidden !important;
  text-decoration: none !important;
}
.auth-btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}
.auth-btn-primary:hover {
  background-position: 100% 50% !important;
  transform: translateY(-1px) !important;
  box-shadow:
    0 8px 22px rgba(84, 104, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
}
.auth-btn-primary:hover::before { left: 100%; }
.auth-btn-primary:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(84, 104, 255, 0.4) !important;
}
.auth-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}
.auth-btn-primary.is-loading {
  pointer-events: none;
  color: transparent !important;
}
.auth-btn-primary.is-loading::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Botón secundario */
.auth-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  padding: 0 20px;
  font-size: 14.5px;
  font-weight: 500;
  font-family: inherit;
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(10, 14, 39, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease-out);
  box-sizing: border-box;
}
.auth-btn-secondary:hover {
  background: #fff;
  border-color: rgba(10, 14, 39, 0.2);
  color: var(--ink-900);
  transform: translateY(-1px);
  text-decoration: none;
}

.auth-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  animation: fadeSlideUp 0.5s var(--ease-out) 0.9s both;
}
.auth-actions-row.stacked {
  flex-direction: column;
  align-items: stretch;
}
.auth-actions-row .forgot-link {
  color: var(--ink-500);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
  position: relative;
  display: inline-block;
}
.auth-actions-row .forgot-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.auth-actions-row .forgot-link:hover { color: var(--brand-500); }
.auth-actions-row .forgot-link:hover::after { transform: scaleX(1); }

.auth-card-footer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(10, 14, 39, 0.08);
  text-align: center;
  animation: fadeSlideUp 0.5s var(--ease-out) 1s both;
}
.auth-card-footer .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-500);
  text-decoration: none;
  transition: all 0.2s;
}
.auth-card-footer .back-link:hover {
  color: var(--brand-500);
  gap: 8px;
}

.auth-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.5s var(--ease-out) 1.1s both;
}
.auth-trust-row .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-300);
  font-weight: 500;
  letter-spacing: 0.2px;
}
.auth-trust-row .trust-item i { color: var(--accent-teal); }

/* Requisitos de contraseña */
.password-requirements {
  margin: 12px 0 20px;
  padding: 14px 16px;
  background: rgba(84, 104, 255, 0.04);
  border: 1px solid rgba(84, 104, 255, 0.12);
  border-radius: var(--radius-md);
}
.password-requirements-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.password-req {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-500);
  padding: 3px 0;
  transition: color 0.3s;
}
.password-req .req-icon {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  transition: all 0.3s;
}
.password-req.valid { color: var(--success); }
.password-req.valid .req-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

/* Alert boxes premium */
.auth-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: fadeSlideUp 0.3s var(--ease-out) both;
}
.auth-alert i { flex-shrink: 0; margin-top: 2px; }
.auth-alert.success { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.2); color: #065f46; }
.auth-alert.error   { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.2); color: #7f1d1d; }
.auth-alert.warning { background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.2); color: #78350f; }
.auth-alert.info    { background: rgba(84, 104, 255, 0.06); border: 1px solid rgba(84, 104, 255, 0.18); color: var(--ink-700); }

.user-info-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(84, 104, 255, 0.06);
  border: 1px solid rgba(84, 104, 255, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 13px;
}
.user-info-pill .avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-violet));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 15px;
  flex-shrink: 0;
}
.user-info-pill .meta { flex: 1; line-height: 1.35; }
.user-info-pill .meta strong {
  display: block;
  color: var(--ink-900);
  font-weight: 600;
}
.user-info-pill .meta span {
  color: var(--ink-500);
  font-size: 12px;
}

.auth-loader {
  text-align: center;
  padding: 32px 20px;
}
.auth-loader .spinner {
  display: inline-block;
  width: 42px; height: 42px;
  border: 3px solid rgba(84, 104, 255, 0.15);
  border-top-color: var(--brand-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}
.auth-loader p {
  font-size: 13.5px;
  color: var(--ink-500);
  margin: 0;
}

.auth-success-display {
  text-align: center;
  padding: 12px 0;
  animation: fadeSlideUp 0.5s var(--ease-out) both;
}
.auth-success-display .check-circle {
  width: 68px; height: 68px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--success), #059669);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 30px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
  animation: checkPop 0.5s var(--ease-out) both;
}
@keyframes checkPop {
  0%   { transform: scale(0.5); opacity: 0; }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.auth-success-display h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 8px;
}
.auth-success-display p {
  font-size: 14px;
  color: var(--ink-500);
  margin: 0 0 20px;
  line-height: 1.55;
}

.auth-error-display {
  text-align: center;
  padding: 12px 0;
}
.auth-error-display .x-circle {
  width: 68px; height: 68px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--danger), #dc2626);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 30px;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.35);
}
.auth-error-display h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 8px;
}
.auth-error-display p {
  font-size: 13.5px;
  color: var(--ink-500);
  margin: 0 0 20px;
}

@keyframes fadeSlideUp {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideRight {
  0% { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes fadeSlideLeft {
  0% { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* RESPONSIVE */

/* Tablet: aún layout de 2 columnas pero compacto */
@media (max-width: 1200px) {
  .auth-brand-panel { padding: 36px 40px; }
  .auth-form-panel { padding: 32px 24px; }
  .auth-card { padding: 36px 32px; }
}

/* Mobile (≤960px): una sola columna, formulario arriba, branding debajo */
@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  /* Invertir el orden: formulario primero, branding después */
  .auth-form-panel {
    order: 1;
    padding: 32px 20px 20px;
    min-height: auto;
  }
  .auth-brand-panel {
    order: 2;
    padding: 32px 24px 48px;
    display: flex;
  }

  /* En móvil: logo en el card y ocultar el header grande del branding (se ve el nombre repetido) */
  .auth-card-logo { display: block; }
  
  /* El hero del branding se vuelve más compacto */
  .auth-brand-hero h1 { font-size: 28px; }
  .auth-brand-hero p { font-size: 14px; margin-bottom: 24px; }
  .auth-brand-header { margin-bottom: 24px; }
  
  /* Solo mostrar 2 feature cards en móvil para ser más compacto */
  .feature-grid .feature-card:nth-child(3) { display: none; }
  
  /* Footer branding compacto */
  .auth-brand-footer { margin-top: 24px; font-size: 11px; }
}

@media (max-width: 520px) {
  .auth-form-panel { padding: 24px 12px 16px; }
  .auth-brand-panel { padding: 24px 16px 32px; }
  .auth-card { padding: 28px 20px; border-radius: var(--radius-lg); }
  .auth-card-header h2 { font-size: 22px; }
  .auth-card-header p { font-size: 13px; }
  .auth-brand-hero h1 { font-size: 24px; }
  body.login-page::before { width: 260px; height: 260px; }
  body.login-page::after { width: 300px; height: 300px; }
  
  /* En pantallas muy pequeñas, feature cards más compactas */
  .feature-card { padding: 10px 14px; gap: 10px; }
  .feature-card .feature-icon { width: 32px; height: 32px; font-size: 14px; }
  .feature-card .feature-copy strong { font-size: 13px; }
  .feature-card .feature-copy span { font-size: 11.5px; }
  
  /* Hero más compacto */
  .auth-brand-hero .eyebrow { font-size: 10px; padding: 4px 10px; margin-bottom: 16px; }
}

/* Pantallas de escritorio bajas (laptops chicos) */
@media (max-height: 780px) and (min-width: 961px) {
  .auth-shell { min-height: auto; }
  .auth-brand-panel { padding: 32px 48px; }
  .auth-brand-hero h1 { font-size: 34px; margin-bottom: 14px; }
  .auth-brand-hero p { font-size: 14px; margin-bottom: 24px; }
  .auth-card { padding: 36px 36px; }
  .auth-card-header { margin-bottom: 24px; }
}

/* Compatibilidad con clases AdminLTE viejas */
.login-box,
.login-box-body,
.login-logo { background: none !important; }
.login-box { padding: 0 !important; margin: 0 !important; }
.login-box-msg { display: none; }
.has-feedback .glyphicon.form-control-feedback { display: none; }
.is-relative { position: relative; }