/* ============================================================
   AUTH.CSS — Portal Médico  |  Professional Design System
   Concepto: Refinamiento bancario + profundidad quirúrgica
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Brand — paleta azul institucional */
  --blue-900: #020d1f;    /* fondo oscuro sidebar */
  --blue-800: #061830;
  --blue-700: #0a2347;
  --blue-600: #0d3060;
  --blue-500: #0f4080;
  --blue-400: #1a5fb4;
  --blue-300: #0071e3;    /* azul primario — acción principal */
  --blue-200: #3b97f7;
  --blue-100: #bfdbfe;
  --blue-50:  #eff6ff;

  --green-500: #16a34a;
  --green-400: #22c55e;
  --green-100: #dcfce7;

  --red-500:   #dc2626;
  --red-100:   #fee2e2;

  --amber-400: #f59e0b;

  /* Neutrals — warm blue-gray */
  --ink-900: #060e1e;
  --ink-800: #0f1f35;
  --ink-700: #1a2f4a;
  --ink-600: #2a4060;
  --ink-400: #5c7699;
  --ink-300: #8aa3be;
  --ink-200: #c5d4e4;
  --ink-100: #e8f0f9;
  --ink-50:  #f4f8fd;
  --white:   #ffffff;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, sans-serif;

  /* Spacing */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-2xl: 24px;
  --r-3xl: 32px;

  /* Layout */
  --sidebar-w: 272px;
  --header-h:  70px;

  /* Effects */
  --glow-blue:  0 0 0 3px rgba(252,209,22,0.25);
  --shadow-sm:  0 1px 3px rgba(6,14,30,0.08), 0 1px 2px rgba(6,14,30,0.06);
  --shadow-md:  0 4px 16px rgba(6,14,30,0.1), 0 2px 6px rgba(6,14,30,0.06);
  --shadow-lg:  0 16px 48px rgba(6,14,30,0.14), 0 4px 16px rgba(6,14,30,0.08);
  --shadow-xl:  0 32px 80px rgba(6,14,30,0.22), 0 8px 24px rgba(6,14,30,0.1);

  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); background: var(--ink-50); color: var(--ink-800); line-height: 1.5; }
.hidden { display: none !important; }

/* ============================================================
   AUTH — Login / Recovery screens
   ============================================================ */
.auth-wrapper {
  display: flex;
  height: 100vh;           /* ocupa exactamente la pantalla, sin scroll */
  overflow: hidden;
  position: relative;
}

/* Ambient background blobs */
.auth-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.auth-bg-shape { position: absolute; border-radius: 50%; filter: blur(100px); }
.shape-1 { width: 800px; height: 800px; background: radial-gradient(circle, rgba(0,48,135,0.55) 0%, transparent 60%); top: -300px; left: -250px; animation: blob-a 22s ease-in-out infinite; }
.shape-2 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(206,17,38,0.2) 0%, transparent 60%); bottom: -150px; left: 20%; animation: blob-b 28s ease-in-out infinite; }
.shape-3 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(252,209,22,0.12) 0%, transparent 60%); top: 40%; left: 10%; animation: blob-a 18s ease-in-out infinite reverse; }
@keyframes blob-a { 0%,100% { transform: translate(0,0) scale(1); } 40% { transform: translate(60px,40px) scale(1.06); } 70% { transform: translate(-20px,60px) scale(0.94); } }
@keyframes blob-b { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px,-60px) scale(1.08); } }

/* ── Left branding panel ─────────────────────────────────── */
.auth-branding {
  flex: 1;
  background:
    linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 45%, var(--blue-700) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 68px;
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow: hidden;
}

/* Fine dot-grid texture */
.auth-branding::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Vertical separator */
.auth-branding::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255,255,255,0.06) 15%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0.06) 85%,
    transparent 100%);
}

/* Decorative arc */
.auth-branding .deco-arc {
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}
.auth-branding .deco-arc::before {
  content: '';
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 50%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 96px;
  position: relative;
}

.brand-logo svg {
  filter: drop-shadow(0 4px 12px rgba(252,209,22,0.4));
}

.brand-copy {
  position: relative;
  margin-bottom: 56px;
}

.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(252,209,22,0.16);
  border: 1px solid rgba(252,209,22,0.25);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-200);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.brand-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--blue-300);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.7); } }

.brand-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 3.8vw, 3.8rem);
  color: var(--white);
  line-height: 1.08;
  font-weight: 400;
  margin-bottom: 22px;
}

.brand-copy h1 em {
  font-style: italic;
  background: linear-gradient(90deg,
    #fcd116 0%,   #fcd116 33%,   /* amarillo Colombia */
    #003087 33%,  #003087 66%,   /* azul Colombia     */
    #ce1126 66%,  #ce1126 100%); /* rojo Colombia     */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-copy p {
  color: rgba(255,255,255,0.45);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 380px;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.brand-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  padding: 14px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-xl);
  transition: all 0.3s var(--smooth);
  cursor: default;
}

.brand-feature:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  transform: translateX(6px);
}

.bf-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, rgba(252,209,22,0.25), rgba(0,88,176,0.2));
  border: 1px solid rgba(252,209,22,0.2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── Right auth panel ────────────────────────────────────── */
.auth-panel {
  width: 520px;
  min-width: 520px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 48px 28px;
}

/* ── Login / Recovery form ───────────────────────────────── */
.auth-form {
  width: 100%;
  max-width: 400px;
  padding: 0;          /* padding manejado por auth-panel-inner */
  display: none;
  animation: form-enter 0.4s var(--smooth);
}
.auth-form.active { display: block; }
@keyframes form-enter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-header { margin-bottom: 40px; }

.form-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue-300);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.form-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--ink-900);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 10px;
}

.form-header p {
  color: var(--ink-400);
  font-size: 0.9rem;
  line-height: 1.65;
}

.form-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--ink-600);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
}

.req { color: var(--red-500); }

.input-wrap { position: relative; display: flex; align-items: center; }

.input-icon {
  position: absolute;
  left: 15px;
  font-size: 0.9rem;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  opacity: 0.6;
}

.input-wrap input {
  width: 100%;
  padding: 14px 44px 14px 42px;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-lg);
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--ink-900);
  background: var(--ink-50);
  transition: all 0.22s var(--smooth);
  outline: none;
}

.input-wrap input:hover { border-color: var(--ink-300); background: var(--white); }

.input-wrap input:focus {
  border-color: var(--blue-300);
  background: var(--white);
  box-shadow: var(--glow-blue);
}

.input-wrap input::placeholder { color: var(--ink-300); }

.toggle-pass {
  position: absolute;
  right: 13px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 5px;
  opacity: 0.45;
  transition: opacity 0.2s;
  color: var(--ink-600);
  border-radius: 6px;
}
.toggle-pass:hover { opacity: 1; background: var(--ink-100); }

.form-hint {
  font-size: 0.75rem;
  color: var(--ink-300);
  line-height: 1.5;
  margin-top: -3px;
  padding-left: 2px;
}

/* Buttons */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 28px;
  background: linear-gradient(135deg, var(--blue-300) 0%, var(--blue-400) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--r-lg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.24s var(--smooth);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 55%);
  pointer-events: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,48,135,0.45); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--white);
  color: var(--ink-500);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-lg);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--ink-300); color: var(--ink-800); background: var(--ink-50); }

/* Alerts */
.form-alert {
  padding: 13px 16px;
  border-radius: var(--r-md);
  font-size: 0.87rem;
  font-weight: 500;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.form-alert.error  { background: var(--red-100); color: #991b1b; border: 1px solid #fca5a5; }
.form-alert.success { background: var(--green-100); color: #14532d; border: 1px solid #86efac; }
.form-alert.hidden { display: none; }

.form-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

.link-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.87rem;
  color: var(--ink-400);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: all 0.18s;
}
.link-btn:hover { color: var(--blue-300); background: var(--blue-50); }
.link-btn strong { color: var(--blue-300); font-weight: 600; }
.link-btn.muted { font-size: 0.81rem; opacity: 0.7; }
.link-btn.muted:hover { opacity: 1; }

/* ============================================================
   MODAL — Crear Cuenta
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 13, 31, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: overlay-in 0.25s ease;
}
.modal-overlay.hidden { display: none; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: var(--white);
  border-radius: 28px;
  width: 100%;
  max-width: 800px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: modal-in 0.35s var(--spring);
  overflow: hidden;
  border: 1px solid var(--ink-100);
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.9) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px 24px;
  border-bottom: 1px solid var(--ink-100);
  background: linear-gradient(135deg, var(--ink-50) 0%, var(--white) 100%);
  flex-shrink: 0;
}

.modal-title-wrap { display: flex; align-items: center; gap: 18px; }

.modal-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--blue-300) 0%, var(--blue-400) 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(0, 88, 176, 0.35);
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--ink-900);
  margin: 0 0 4px;
  line-height: 1.1;
}
.modal-header p { font-size: 0.84rem; color: var(--ink-400); margin: 0; }

.modal-close {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--ink-200);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-400);
  transition: all 0.2s;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--red-100); border-color: #fca5a5; color: var(--red-500); transform: rotate(90deg); }

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px 36px;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-200) transparent;
}
.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 10px; }

.modal-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-400);
  margin-bottom: 22px;
}

.section-num {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, var(--blue-300), var(--blue-400));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,48,135,0.3);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.modal-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-200) 25%, var(--ink-200) 75%, transparent);
  margin: 28px 0;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 36px 24px;
  border-top: 1px solid var(--ink-100);
  background: var(--ink-50);
  flex-shrink: 0;
}

/* ============================================================
   DASHBOARD SHELL
   ============================================================ */
#dashboardWrapper { display: flex; min-height: 100vh; background: var(--ink-50); }
#dashboardWrapper.hidden { display: none !important; }
#authWrapper.hidden      { display: none !important; }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--blue-900);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s var(--smooth);
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

/* Sidebar inner gradient for depth */
.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,48,110,0.5) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(0,30,70,0.8) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.sidebar > * { position: relative; z-index: 1; }

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 26px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logo svg { filter: drop-shadow(0 3px 8px rgba(252,209,22,0.45)); }

.logo-text {
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  margin: 14px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-xl);
  backdrop-filter: blur(4px);
}

.su-avatar {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, rgba(252,209,22,0.45), rgba(0,64,140,0.4));
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(252,209,22,0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.su-info { display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

.su-name {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.su-cedula { color: rgba(255,255,255,0.3); font-size: 0.72rem; margin-top: 2px; }

.sidebar-nav { flex: 1; padding: 8px 12px 0; display: flex; flex-direction: column; gap: 2px; }

.nav-section-label {
  color: rgba(255,255,255,0.2);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-lg);
  color: rgba(180,200,230,0.65);
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 500;
  transition: all 0.18s var(--smooth);
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
  width: 100%;
  text-align: left;
  letter-spacing: -0.01em;
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(252,209,22,0.18), rgba(0,48,135,0.14));
  color: #fcd116;
  border-color: rgba(252,209,22,0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.nav-item.soon {
  border-style: dashed;
}

.nav-soon-badge {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f8fafc;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.28);
  flex-shrink: 0;
}

.nav-icon { font-size: 1.05rem; flex-shrink: 0; }

.sidebar-bottom {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 16px;
}

.logout-btn { color: rgba(255,255,255,0.35) !important; font-size: 0.85rem !important; }
.logout-btn:hover { color: #fca5a5 !important; background: rgba(239,68,68,0.12) !important; border-color: rgba(239,68,68,0.15) !important; }

/* ── Main content ────────────────────────────────────────── */
.dashboard-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 40px 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-100);
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  height: auto;
  box-shadow: 0 1px 0 var(--ink-100), 0 4px 20px rgba(6,14,30,0.05);
}

.dash-header-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.dash-header-right {
  display: flex;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
  margin-left: 16px;
}

.dash-header-left h1 {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 400;
  color: var(--ink-900);
  margin: 0;
  line-height: 1;
}
.dash-header-left p {
  color: var(--ink-300);
  font-size: 0.77rem;
  margin: 5px 0 0;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.corte-select-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  flex-wrap: wrap;
}

.corte-select-label {
  font-size: 0.78rem;
  color: var(--ink-500);
  font-weight: 700;
}

.corte-select {
  min-width: 220px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--ink-150);
  background: #fff;
  color: var(--ink-900);
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  box-shadow: 0 8px 20px rgba(6, 14, 30, 0.06);
}

.corte-select:focus {
  border-color: var(--accent-500);
  box-shadow: 0 0 0 4px rgba(58, 104, 255, 0.12);
}

.dash-user-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--ink-50);
  border: 1.5px solid var(--ink-200);
  padding: 8px 18px 8px 12px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-800);
  transition: all 0.2s;
  cursor: default;
}
.dash-user-pill:hover { border-color: var(--blue-200); background: var(--blue-50); color: var(--blue-400); }

.module-content { display: none; padding: 36px 40px; flex: 1; position: relative; }
.module-content.active { display: block; animation: module-enter 0.3s var(--smooth); }

.soon-card {
  overflow: hidden;
}

.soon-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 28px 22px;
  background: linear-gradient(150deg, #0a2347 0%, #071a33 60%, #020d1f 100%);
  color: var(--white);
}

.soon-ico {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.soon-hero h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  margin: 0 0 4px;
}

.soon-hero p {
  color: rgba(255,255,255,0.58);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.soon-body {
  padding: 22px 28px 28px;
}

.soon-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(252,209,22,0.15);
  color: #a07800;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  border: 1px solid #bfdbfe;
}

.soon-body p {
  color: var(--ink-400);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  max-width: 680px;
}

@media (max-width: 768px) {
  .nav-soon-badge {
    font-size: 0.58rem;
    padding: 3px 7px;
  }

  .soon-hero {
    padding: 20px 18px 16px;
    gap: 12px;
  }

  .soon-ico {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    font-size: 1.25rem;
  }

  .soon-hero h3 {
    font-size: 1.25rem;
  }

  .soon-hero p {
    font-size: 0.84rem;
  }

  .soon-body {
    padding: 18px;
  }

  .soon-body p {
    font-size: 0.88rem;
  }
}
@keyframes module-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 15px; left: 15px;
  z-index: 200;
  background: var(--white);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-md);
  width: 44px; height: 44px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  color: var(--ink-700);
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.sidebar-toggle:hover { background: var(--blue-300); border-color: var(--blue-300); color: var(--white); box-shadow: 0 6px 20px rgba(0,48,135,0.35); }

.mobile-magic-nav {
  display: none;
}

/* ============================================================
   CUSTOM SELECT DROPDOWN
   ============================================================ */
.custom-select-wrap { position: relative; width: 100%; }

.custom-select-trigger {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 14px 16px;
  background: var(--ink-50);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.custom-select-trigger:hover { border-color: var(--ink-300); background: var(--white); }
.custom-select-wrap.cs-open .custom-select-trigger {
  border-color: var(--blue-300);
  background: var(--white);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: var(--glow-blue);
}
.custom-select-wrap.cs-disabled .custom-select-trigger { opacity: 0.4; cursor: not-allowed; }

.cs-icon { font-size: 0.9rem; flex-shrink: 0; opacity: 0.6; }
.cs-value { flex: 1; font-size: 0.92rem; color: var(--ink-300); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-value.cs-selected { color: var(--ink-900); font-weight: 500; }
.cs-arrow { flex-shrink: 0; color: var(--ink-300); transition: transform 0.22s var(--smooth); }
.custom-select-wrap.cs-open .cs-arrow { transform: rotate(180deg); }

.custom-select-dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--white);
  border: 1.5px solid var(--blue-300);
  border-top: 1px solid var(--ink-100);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow-lg), var(--glow-blue);
  z-index: 9999;
  overflow: hidden;
}
.custom-select-wrap.cs-open .custom-select-dropdown { display: block; }

.cs-search-wrap { padding: 10px 12px; background: var(--ink-50); border-bottom: 1px solid var(--ink-100); }

.cs-search {
  width: 100%;
  padding: 9px 14px;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-md);
  font-size: 0.87rem;
  outline: none;
  background: var(--white);
  font-family: var(--font-body);
  color: var(--ink-900);
  transition: border-color 0.2s;
}
.cs-search::placeholder { color: var(--ink-300); }
.cs-search:focus { border-color: var(--blue-300); box-shadow: var(--glow-blue); }

.cs-options { max-height: 220px; overflow-y: auto; padding: 6px; scrollbar-width: thin; scrollbar-color: var(--ink-200) transparent; }
.cs-options::-webkit-scrollbar { width: 4px; }
.cs-options::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 4px; }

.cs-option {
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--ink-800);
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: all 0.14s;
}
.cs-option:hover { background: var(--blue-50); color: var(--blue-300); padding-left: 18px; font-weight: 500; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1050px) {
  .auth-panel { width: 460px; min-width: 460px; }
  .auth-branding { padding: 56px 48px; }
}

@media (max-width: 900px) {
  .auth-wrapper { flex-direction: column; min-height: 100svh; }
  .auth-branding { width: 100%; min-height: unset; padding: 28px 28px 36px; gap: 20px; }
  .auth-branding::after, .auth-branding::before { display: none; }
  .brand-logo { margin-bottom: 0; }
  .brand-copy { margin-bottom: 0; }
  .brand-copy h1 { font-size: 1.5rem; margin-bottom: 0; }
  .brand-copy p, .brand-features, .brand-eyebrow { display: none; }
  .auth-panel { width: 100%; min-width: unset; padding: 40px 20px 56px; border-radius: 32px 32px 0 0; margin-top: -24px; background: var(--white); box-shadow: 0 -10px 40px rgba(6,14,30,0.12); }
  .auth-form { max-width: 100%; padding: 0 4px; }
}

/* Sidebar backdrop (mobile only) */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2,13,31,0.55);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

/* Ensure mobile nav is never visible on desktop */
@media (min-width: 769px) {
  .mobile-magic-nav { display: none !important; }
}

@media (max-width: 768px) {
  .sidebar {
    display: none !important;
  }
  .sidebar {
    transform: none !important;
    box-shadow: none !important;
    width: min(272px, 80vw);
    min-width: unset;
  }
  .sidebar.open { transform: none !important; box-shadow: none !important; }
  .sidebar-toggle {
    display: inline-flex !important;
    top: 10px;
    left: 10px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    z-index: 240;
  }
  .sidebar-backdrop {
    display: block !important;
    z-index: 219;
  }
  .dashboard-content { margin-left: 0; }
  .dash-header {
    margin: 10px 12px 0;
    padding: 16px 16px 14px 56px;
    flex-wrap: wrap;
    gap: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,250,255,0.98) 100%);
    border: 1px solid rgba(207, 220, 237, 0.9);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(12, 32, 66, 0.08);
  }
  .dash-header-left {
    width: 100%;
    gap: 6px;
  }
  .dash-header-left h1 {
    font-size: 1.3rem;
    line-height: 1.05;
  }
  .dash-header-left p {
    font-size: 0.75rem;
    line-height: 1.35;
    margin-top: 2px;
  }
  .dash-header-right {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    align-self: flex-start;
  }
  .dash-user-pill {
    padding: 6px 12px 6px 10px;
    font-size: 0.78rem;
    border-radius: 14px;
  }
  .corte-select-row {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .corte-select-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7486a3;
  }
  .corte-select {
    min-width: 100%;
    width: 100%;
    max-width: none;
    padding: 12px 14px;
    font-size: 0.95rem;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 20px rgba(12, 32, 66, 0.06);
  }
  .module-content { padding: 14px 12px 20px; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-header { padding: 22px 24px 18px; }
  .modal-body { padding: 24px; }
  .modal-footer { padding: 16px 24px; flex-direction: column-reverse; }
  .modal-footer .btn-primary,
  .modal-footer .btn-secondary { width: 100%; justify-content: center; }

  .mobile-magic-nav {
    position: fixed;
    top: 58px;
    left: 10px;
    bottom: auto;
    right: auto;
    transform: translateY(-8px) scale(0.96);
    z-index: 220;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 68px;
    max-height: calc(100vh - 88px);
    padding: 10px 6px;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(201, 214, 232, 0.82);
    border-radius: 26px;
    box-shadow: 0 12px 28px rgba(6,14,30,0.12), 0 2px 10px rgba(6,14,30,0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y proximity;
    scrollbar-width: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.22s ease;
  }
  .mobile-magic-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .mobile-magic-nav::-webkit-scrollbar { display: none; }

  .mobile-magic-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    width: 100%;
    min-height: 58px;
    padding: 8px 2px 6px;
    color: #7a8ea8;
    text-decoration: none;
    background: transparent;
    border-radius: 16px;
    border: none;
    scroll-snap-align: center;
  }

  .mobile-magic-item:hover {
    background: transparent;
    color: #35557a;
  }

  .mobile-magic-item.active {
    background: rgba(63, 111, 255, 0.08);
    color: #0a2347;
    box-shadow: none;
    transform: translateX(-4px);
  }

  .mobile-magic-logout {
    margin-top: 4px;
    color: #b45309;
  }
  .mobile-magic-logout:hover {
    color: #b91c1c;
  }

  .mobile-magic-icon {
    font-size: 1.05rem;
    line-height: 1;
  }

  .mobile-magic-item.active:not(.mobile-magic-item-center) .mobile-magic-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 2px;
    background: linear-gradient(180deg, #3f6fff 0%, #6c78ff 100%);
    border: 3px solid #ffffff;
    color: #fff;
    box-shadow: 0 10px 20px rgba(73, 95, 255, 0.24), inset 0 0 0 1px rgba(255,255,255,0.22);
  }

  .mobile-magic-text {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    max-width: 54px;
  }

  .mobile-magic-item-center {
    transform: none;
  }

  .mobile-magic-orb {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .mobile-magic-item-center .mobile-magic-icon {
    font-size: 1.18rem;
    color: #496786;
  }

  .mobile-magic-item-center.active {
    transform: translateX(-4px);
  }

  .mobile-magic-item-center.active .mobile-magic-orb {
    width: 42px;
    height: 42px;
    background: linear-gradient(180deg, #3f6fff 0%, #6c78ff 100%);
    border: 3px solid #ffffff;
    color: #fff;
    box-shadow: 0 10px 20px rgba(73, 95, 255, 0.24), inset 0 0 0 1px rgba(255,255,255,0.22);
  }

  .mobile-magic-item-center.active .mobile-magic-icon {
    color: #fff;
  }
}

@media (max-width: 600px) {
  .dash-header {
    padding-right: 12px;
    padding-left: 54px;
  }
  .dash-user-pill {
    border-radius: 16px;
  }
  .mobile-magic-nav {
    left: 10px;
    width: 64px;
    border-radius: 22px;
    padding: 8px 4px;
  }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box { border-radius: 28px 28px 0 0; max-height: 95svh; width: 100%; }
  .modal-header { padding: 20px 20px 16px; }
  .modal-body { padding: 18px 20px; }
  .modal-footer { padding: 14px 20px 28px; gap: 8px; }
  .modal-icon { width: 44px; height: 44px; border-radius: 14px; }
  .modal-header h2 { font-size: 1.35rem; }
}

@media (max-width: 520px) {
  .auth-branding {
    padding: 22px 18px 26px;
  }

  .brand-logo {
    margin-bottom: 0;
  }

  .brand-logo span {
    font-size: 1rem;
  }

  .auth-panel {
    padding: 30px 14px 42px;
    border-radius: 28px 28px 0 0;
    margin-top: -18px;
  }

  .auth-form {
    padding: 0;
  }

  .form-header {
    margin-bottom: 28px;
  }

  .form-header h2 {
    font-size: 1.8rem;
  }

  .form-body {
    gap: 18px;
    margin-bottom: 22px;
  }

  .input-wrap input {
    padding-top: 13px;
    padding-bottom: 13px;
    font-size: 16px;
  }

  .btn-primary,
  .btn-secondary {
    min-height: 48px;
  }

  .btn-primary svg {
    flex-shrink: 0;
  }

  .modal-overlay {
    padding: 0;
  }

  .modal-box {
    max-height: 96svh;
    border-radius: 24px 24px 0 0;
  }

  .modal-body {
    padding: 16px;
  }

  .modal-grid {
    gap: 14px;
  }

  .custom-select-trigger,
  .input-wrap,
  .cs-search {
    min-height: 48px;
  }
}

@media (max-width: 380px) {
  .auth-branding {
    padding: 18px 14px 22px;
  }

  .auth-panel {
    padding: 24px 12px 36px;
  }

  .form-header h2 {
    font-size: 1.55rem;
  }

  .form-header p,
  .form-hint,
  .link-btn {
    font-size: 0.8rem;
  }

  .brand-logo svg {
    width: 34px;
    height: 34px;
  }
}

/* ── FIFA 26 HERO en el login ──────────────────────────────── */
@keyframes auth-trophy-float { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-8px) scale(1.04)} }
@keyframes auth-live-dot     { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(0,230,118,.7)} 50%{opacity:.4;box-shadow:0 0 0 6px rgba(0,230,118,0)} }
@keyframes auth-col-shimmer  { 0%{background-position:0% 50%} 100%{background-position:200% 50%} }

/* (Se quitó el override del tema Mundial que forzaba el fondo a negro y ocultaba
   las decoraciones. Vuelve a mandar el gradiente azul original de .auth-branding.) */

/* Hero central */
.auth-fifa-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 0 32px;
  position: relative;
}

/* "FIFA WORLD CUP" eyebrow */
.auth-fifa-eyebrow {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 16px;
}

/* Poster "Fútbol 26" — imagen completa enmarcada, estilo premium */
.auth-fifa-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-bottom: 22px;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,214,0,.22);
  box-shadow:
    0 22px 55px rgba(0,0,0,.65),
    0 0 70px rgba(255,184,0,.10),
    inset 0 0 0 1px rgba(255,255,255,.04);
  transition: transform .4s ease, box-shadow .4s ease;
}
.auth-fifa-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 28px 65px rgba(0,0,0,.7),
    0 0 90px rgba(255,184,0,.18),
    inset 0 0 0 1px rgba(255,214,0,.10);
}
.auth-fifa-img {
  display: block;
  width: 100%;
  height: auto;
}
/* Glow dorado arriba + viñeta inferior para fundir con el panel negro */
.auth-fifa-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 75% at 50% 0%, rgba(255,214,0,.12), transparent 55%),
    linear-gradient(to bottom, transparent 72%, rgba(0,0,0,.30));
}
/* Restos del tratamiento anterior del "26" (ocultos) */
.auth-fifa-26, .auth-fifa-digit, .auth-fifa-trophy-wrap, .auth-fifa-trophy-svg { display: none; }

/* Barra colores Colombia */
.auth-col-bar {
  display: flex;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
  gap: 2px;
}
.auth-col-y { flex: 2; background: #fcd116; }
.auth-col-b { flex: 1; background: #003087; }
.auth-col-r { flex: 1; background: #ce1126; }

/* Tagline */
.auth-fifa-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
  max-width: 300px;
}
.auth-fifa-tagline strong { color: #fcd116; font-weight: 700; }
.auth-fifa-live-dot {
  width: 8px; height: 8px;
  background: #00e676;
  border-radius: 50%;
  flex-shrink: 0;
  animation: auth-live-dot 1.4s ease-in-out infinite;
}

/* ── MÓVIL: banner compacto horizontal en vez de ocultar ── */
@media (max-width: 900px) {
  /* El hero pasa a layout horizontal centrado */
  .auth-fifa-hero {
    flex: unset;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 4px 0 8px;
    width: 100%;
  }

  /* Poster compacto a la izquierda en móvil */
  .auth-fifa-card {
    max-width: 108px;
    margin-bottom: 0;
    border-radius: 14px;
    flex-shrink: 0;
  }

  /* Eyebrow + tagline ocultos en móvil (van como texto corto al lado) */
  .auth-fifa-eyebrow { display: none; }

  /* Barra Colombia compacta a la derecha del "26" */
  .auth-col-bar {
    width: 3px;
    height: 60px;
    flex-direction: column;
    border-radius: 999px;
    margin-bottom: 0;
    gap: 2px;
    flex-shrink: 0;
  }
  .auth-col-y { flex: 2; }
  .auth-col-b { flex: 1; }
  .auth-col-r { flex: 1; }

  /* Tagline compacta a la derecha */
  .auth-fifa-tagline {
    font-size: 11px;
    max-width: 130px;
    gap: 6px;
    flex-direction: column;
    align-items: flex-start;
  }
  .auth-fifa-live-dot { width: 6px; height: 6px; }
}

@media (max-width: 480px) {
  .auth-fifa-card { max-width: 92px; }
  .auth-fifa-tagline { font-size: 10px; max-width: 110px; }
}

/* ══════════════════════════════════════════════════════════════
   PRO LOGIN UPGRADE v2 — Diseño completo
   ══════════════════════════════════════════════════════════════ */

/* ── PANEL IZQUIERDO: centrado, sin huecos ─────────────────── */
.auth-branding {
  justify-content: center !important;
  align-items: center !important;       /* logo + todo centrado horizontalmente */
  padding: 40px 48px !important;
  max-width: 780px;
  gap: 20px !important;
  text-align: center;
}

/* Logo centrado */
.brand-logo {
  margin-bottom: 0 !important;
  justify-content: center !important;
}

/* Hero FIFA centrado */
.auth-fifa-hero {
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  width: 100%;
  gap: 14px;
}

/* Copa — tamaño prominente */
.auth-fifa-card {
  max-width: min(280px, 80%) !important;
  margin: 0 auto !important;
}

/* Barra Colombia centrada */
.auth-col-bar { margin: 0 auto; max-width: 260px; }

/* Tagline centrado */
.auth-fifa-tagline { justify-content: center !important; text-align: center; }

/* Texto "Delfos es Colombia" — centrado, sin márgenes propios */
.brand-copy { margin-bottom: 0 !important; text-align: center; }
.brand-copy h1 { font-size: clamp(2rem, 2.6vw, 3rem) !important; margin-bottom: 0 !important; }

/* ── PANEL DERECHO: degradado frío + form card ────────────── */
.auth-panel {
  width: 540px !important;
  min-width: 480px !important;
  height: 100vh;
  padding: 24px 24px !important;
  background: linear-gradient(170deg, #eef3ff 0%, #f6f9ff 45%, #ffffff 100%) !important;
  overflow: hidden;
  position: relative;
}

.auth-panel::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(0,48,135,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Inner: centra el contenido horizontalmente */
.auth-panel-inner {
  width: 100%;
  max-width: 440px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

/* Logo pequeño en panel derecho */
.auth-panel-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.auth-panel-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #003087, #0044c4);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,48,135,0.30);
  flex-shrink: 0;
}
.auth-panel-logo span {
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

/* ── Form como tarjeta premium flotante ────────────────────── */
.auth-panel .auth-form {
  background: #ffffff !important;
  border: 1px solid rgba(0,48,135,0.10) !important;
  border-radius: 22px !important;
  padding: 28px 28px 22px !important;
  box-shadow:
    0 1px 3px rgba(6,14,30,0.04),
    0 8px 32px rgba(6,14,30,0.09),
    0 24px 56px rgba(0,48,135,0.07) !important;
  position: relative;
  overflow: hidden;
}

/* Línea brillante superior de la tarjeta */
.auth-panel .auth-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(252,209,22,0.6) 25%,
    rgba(0,68,196,0.5) 60%,
    transparent 100%);
}

/* Header del form */
.auth-panel .form-header { margin-bottom: 18px !important; }
.auth-panel .form-header-tag {
  background: linear-gradient(135deg, rgba(0,48,135,0.07), rgba(252,209,22,0.08));
  border: 1px solid rgba(0,48,135,0.14);
  color: #003087;
  font-size: 0.67rem;
}
.auth-panel .form-header h2 {
  font-size: 1.85rem !important;
  background: linear-gradient(135deg, #060e1e 0%, #1a2f4a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Inputs refinados */
.auth-panel .input-wrap input {
  border: 1.5px solid #d8e2f5 !important;
  background: #f6f9ff !important;
  font-size: 0.94rem !important;
  padding: 13px 44px 13px 44px !important;
  border-radius: 12px !important;
  transition: all 0.2s ease !important;
}
.auth-panel .input-wrap input:focus {
  border-color: #003087 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(0,48,135,0.11) !important;
}

/* Botón Ingresar — azul Colombia brillante */
.auth-panel .btn-primary {
  background: linear-gradient(135deg, #002270 0%, #003087 40%, #0044c4 100%) !important;
  border-radius: 12px !important;
  padding: 14px 24px !important;
  font-size: 0.96rem !important;
  box-shadow: 0 4px 18px rgba(0,48,135,0.38), inset 0 1px 0 rgba(255,255,255,0.14) !important;
  transition: all 0.25s ease !important;
}
.auth-panel .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(0,48,135,0.52) !important;
}

/* Form footer */
.auth-panel .form-footer { padding-top: 4px !important; gap: 8px !important; }
.auth-panel .link-btn { font-size: 0.83rem; color: #8aa3be; }
.auth-panel .link-btn strong { color: #0044c4 !important; }
.auth-panel .link-btn:hover { color: #0044c4 !important; background: rgba(0,68,196,0.05) !important; }

/* ── Trust row ─────────────────────────────────────────────── */
.auth-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.auth-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: 0.02em;
}
.auth-trust-text {
  font-size: 0.69rem;
  color: #8aa3be;
  font-weight: 500;
}
.auth-trust-sep { color: #c5d4e4; font-size: 0.65rem; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1050px) {
  .auth-panel { width: 480px !important; min-width: 440px !important; }
  .auth-branding { padding: 32px 40px 36px !important; }
}

@media (max-width: 900px) {
  /* En móvil: wrapper scrollable normal, no altura fija */
  .auth-wrapper {
    flex-direction: column !important;
    height: auto !important;
    min-height: 100svh !important;
    overflow: visible !important;
  }

  /* Franja oscura: todo centrado, con copa grande */
  .auth-branding {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    padding: 32px 24px 36px !important;
    min-height: unset !important;
    gap: 16px !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Logo centrado arriba */
  .brand-logo { margin-bottom: 0 !important; justify-content: center !important; }

  /* Copa en columna, grande y centrada */
  .auth-fifa-hero {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  .auth-fifa-card {
    max-width: 160px !important;
    width: 160px !important;
    margin: 0 auto !important;
    border-radius: 16px !important;
  }
  .auth-col-bar    { display: none !important; }
  .auth-fifa-tagline { display: none !important; }

  /* Texto "Delfos es Colombia" centrado */
  .brand-copy { margin-bottom: 0 !important; text-align: center !important; }
  .brand-copy h1 { font-size: 1.7rem !important; margin-bottom: 0 !important; }

  /* Panel derecho: cubre la franja oscura con borde redondeado */
  .auth-panel {
    width: 100% !important;
    min-width: unset !important;
    height: auto !important;
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 32px 20px 48px !important;
    border-radius: 28px 28px 0 0 !important;
    margin-top: -20px !important;
    box-shadow: 0 -8px 32px rgba(6,14,30,0.14) !important;
  }

  .auth-panel-inner { max-width: 100% !important; padding: 0 !important; }
  .auth-panel .auth-form { padding: 24px 20px 18px !important; border-radius: 18px !important; }
  .auth-trust-row { margin-top: 12px; }
  .brand-features { display: none !important; }
}

@media (max-width: 520px) {
  .auth-branding { padding: 22px 18px 28px !important; }
  .brand-copy h1 { font-size: 1.4rem !important; }
  .auth-panel { padding: 24px 16px 40px !important; }
  .auth-panel .auth-form { padding: 20px 16px 16px !important; border-radius: 16px !important; }
}
