/* Pantallas de acceso (ingresar, recuperar contraseña, código por SMS).
   Misma identidad del portal: azul marino + verde deportivo. */
@font-face { font-family: 'Comic Neue'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/comic-neue/comic-neue-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Comic Neue'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/comic-neue/comic-neue-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Comic Neue'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/comic-neue/comic-neue-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Comic Neue'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/comic-neue/comic-neue-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Comic Neue'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/comic-neue/comic-neue-latin-700-normal.woff2') format('woff2'); }
:root {
    --navy: #0B2A4A; --navy-2: #1A5A95; --primary: #0E6BB8; --primary-dark: #0E6BB8; --blue: #0E6BB8;
    --bg: #f3f6f9; --card: #fff; --ink: #10213b; --muted: #64748b; --line: #e2e8f0; --danger: #dc2626;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-family: 'Comic Neue', 'Comic Sans MS', 'Segoe UI', system-ui, sans-serif; font-size: 15px; color: var(--ink); background: var(--bg); }
a { color: var(--blue); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

.auth { display: grid; min-height: 100vh; grid-template-columns: 1fr; }
@media (min-width: 992px) { .auth { grid-template-columns: minmax(0, 1.15fr) minmax(460px, 1fr); } }

/* Lado de la marca: foto del estadio con capa azul marino */
.auth-brand { position: relative; overflow: hidden; color: #fff; background: var(--navy); padding: 22px 20px 26px; display: flex; flex-direction: column; justify-content: space-between; min-height: 210px; }
.auth-brand img.photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; }
.auth-brand::before { content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(0deg, rgba(5,52,28,.65) 0%, rgba(5,52,28,0) 40%), linear-gradient(90deg, rgba(15,45,82,.93) 0%, rgba(15,45,82,.72) 55%, rgba(15,45,82,.45) 100%); }
.auth-brand > * { position: relative; z-index: 2; }
.brand-row { display: flex; align-items: center; gap: 12px; }
.brand-row img, .brand-row .logo-fb { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; }
.brand-row .logo-fb { display: flex; align-items: center; justify-content: center; background: #fff; color: var(--navy); font-family: 'Comic Neue', 'Comic Sans MS'; font-weight: 800; font-size: 20px; }
.brand-row b { display: block; font-family: 'Comic Neue', 'Comic Sans MS', sans-serif; letter-spacing: -.015em; font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.brand-row small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #c9d4e3; }
.back-web { position: absolute; top: 22px; right: 20px; color: #fff; font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; opacity: .9; }
.back-web:hover { opacity: 1; color: #fff; }
.brand-copy { display: none; }
.brand-copy h2 { font-family: 'Comic Neue', 'Comic Sans MS', sans-serif; letter-spacing: -.015em; font-weight: 800; font-size: 58px; line-height: .95; text-transform: uppercase; margin: 0 0 12px; }
.brand-copy p { margin: 0; font-size: 17px; color: #e3e9f2; max-width: 460px; }
.brand-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.brand-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #e3e9f2; }
.brand-points i { width: 34px; height: 34px; border-radius: 50%; background: rgba(14,107,184,.18); color: #3ddc84; display: flex; align-items: center; justify-content: center; flex: 0 0 34px; }
.brand-points b { color: #fff; display: block; }
.brand-foot { display: none; font-size: 12.5px; color: #aab6c8; }
@media (min-width: 992px) {
    .auth-brand { padding: 36px 48px; min-height: 100vh; }
    .back-web { top: 36px; right: 48px; }
    .brand-copy, .brand-foot { display: block; }
}

/* Lado del formulario */
.auth-main { display: flex; align-items: flex-start; justify-content: center; padding: 0 16px 32px; }
@media (min-width: 992px) { .auth-main { align-items: center; padding: 40px; } }
.auth-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid #e6ebf1; border-radius: 16px; box-shadow: 0 2px 4px rgba(15,45,82,.04), 0 14px 34px rgba(15,45,82,.10); padding: 26px 22px; margin-top: -34px; position: relative; z-index: 3; }
@media (min-width: 992px) { .auth-card { margin-top: 0; padding: 36px 34px; } }
.auth-card h1 { margin: 0; font-family: 'Comic Neue', 'Comic Sans MS', sans-serif; letter-spacing: -.015em; font-weight: 800; font-size: 32px; text-transform: uppercase; color: var(--navy); letter-spacing: .01em; }
.auth-card .sub { margin: 6px 0 20px; color: var(--muted); font-size: 14.5px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.input-wrap { position: relative; }
.input-wrap > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 15px; pointer-events: none; }
.input-wrap input { width: 100%; min-height: 48px; padding: 0 14px 0 42px; border: 1px solid #d5deea; border-radius: 10px; background: #fff; font: inherit; font-size: 15.5px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.input-wrap input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,107,184,.15); }
.input-wrap input.is-code { padding-left: 14px; text-align: center; letter-spacing: .5em; font-size: 22px; font-weight: 700; }
.input-wrap .toggle-pass { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.input-wrap .toggle-pass:hover { background: #f1f5f9; color: var(--navy); }
.has-error .input-wrap input { border-color: var(--danger); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 4px 0 18px; font-size: 14px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; border-radius: 10px; border: 1.5px solid transparent; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .15s, transform .1s; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(14,107,184,.25); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--navy); border-color: #d5deea; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading i { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { border-radius: 10px; padding: 11px 14px; margin-bottom: 16px; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.alert-ok { background: #e6f7ee; color: #065f33; border: 1px solid #c9ecd7; }
.alert-err { background: #fdecec; color: #991b1b; border: 1px solid #f8cccc; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.alt-links { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-legal { margin-top: 18px; text-align: center; font-size: 12px; color: #94a3b8; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
/* Legibilidad: capa más uniforme en computadora (la foto tiene zonas claras) */
@media (min-width: 992px) {
    .auth-brand::before { background: linear-gradient(0deg, rgba(5,52,28,.55) 0%, rgba(5,52,28,0) 30%), linear-gradient(90deg, rgba(15,45,82,.94) 0%, rgba(15,45,82,.80) 45%, rgba(15,45,82,.35) 100%); }
    .brand-copy { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
}
/* Celular: "Volver a la web" solo con la flecha, para no chocar con el lema */
@media (max-width: 991px) {
    .back-web { width: 40px; height: 40px; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.14); top: 18px; right: 16px; font-size: 0; }
    .back-web i { font-size: 15px; }
    .brand-row { padding-right: 52px; }
}

/* ===== Rediseño UX del acceso (11/11/2026) ===== */
/* "Volver a la web": botón de vidrio SIEMPRE por encima del logo (antes lo tapaba y no se podía tocar) */
.auth-brand > .back-web { position: absolute; z-index: 6; top: 22px; right: 20px; display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font-size: 13.5px; font-weight: 700; opacity: 1;
    transition: background .2s, transform .2s; }
.auth-brand > .back-web:hover { background: rgba(255,255,255,.26); text-decoration: none; transform: translateX(-2px); }
@media (min-width: 992px) { .auth-brand > .back-web { top: 34px; right: 40px; } }
@media (max-width: 991px) {
    .auth-brand > .back-web { width: auto; height: auto; padding: 8px 12px; font-size: 0; top: 16px; right: 14px; }
    .auth-brand > .back-web i { font-size: 15px; }
}

/* Lado de la marca: titular más amable y viñetas como tarjetas de vidrio */
@media (min-width: 992px) {
    .brand-copy h2 { font-size: 50px; line-height: 1; }
    .brand-points { gap: 10px; max-width: 520px; }
    .brand-points li { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
        backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
    .brand-points i { background: rgba(61,220,132,.16); }
}
.brand-quick { display: none; }
@media (min-width: 992px) {
    .brand-quick { display: block; margin-top: 18px; }
    .brand-quick small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #c9d4e3; margin-bottom: 8px; }
    .brand-quick div { display: flex; flex-wrap: wrap; gap: 8px; }
    .brand-quick a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; color: #fff; font-size: 13.5px;
        background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); transition: background .2s; }
    .brand-quick a:hover { background: rgba(255,255,255,.24); text-decoration: none; }
    .brand-quick a i { color: #3ddc84; }
}

/* Lado del formulario: fondo con líneas de cancha suaves para que no se vea vacío */
@media (min-width: 992px) {
    .auth-main { background:
        radial-gradient(circle at 50% 50%, transparent 0 118px, rgba(14,107,184,.06) 119px 121px, transparent 122px),
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(14,107,184,.06) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
        linear-gradient(180deg, #f6f9fc, #edf2f8); }
}
.auth-card { border-radius: 20px; }
.card-crest { display: flex; justify-content: center; margin: -4px 0 12px; }
.card-crest img, .card-crest .logo-fb { width: 64px; height: 64px; object-fit: contain; border-radius: 16px; }
.card-crest .logo-fb { display: flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; font-weight: 800; font-size: 22px; }
.auth-card h1 { text-align: center; font-size: 30px; }
.auth-card .sub { text-align: center; }
@media (max-width: 991px) { .card-crest { display: none; } }   /* en el celular el escudo ya está arriba */

.input-wrap input { border-radius: 12px; background: #f8fafc; }
.input-wrap input:focus { background: #fff; }
.input-wrap:focus-within > i { color: var(--primary); }
.caps-warn { margin: 6px 0 0; font-size: 12.5px; font-weight: 700; color: #b45309; display: flex; align-items: center; gap: 6px; }
.caps-warn[hidden] { display: none; }
.btn { border-radius: 12px; }
.btn-primary { background: linear-gradient(135deg, #1479C9, #0B5FA5); }
.btn-primary:hover { background: linear-gradient(135deg, #0E6BB8, #0A548F); }
.auth-help { margin: 18px 0 0; padding: 10px 12px; border-radius: 12px; background: #f1f6fb; color: var(--muted); font-size: 13px; text-align: center; }
.auth-help i { color: var(--primary); margin-right: 4px; }
.auth-legal { margin-top: 12px; }
.auth-legal i { font-size: 11px; margin-right: 4px; }
@media (min-width: 992px) { .brand-row { padding-right: 190px; } .brand-row b { font-size: 22px; line-height: 1.1; } }

/* Elegir zona (cuentas con panel y Mi Equipo) */
.zone-list { display: grid; gap: 12px; margin: 6px 0 16px; }
.zone-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1.5px solid #dbe4ef; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; position: relative; }
.zone-card:hover { border-color: var(--primary); box-shadow: 0 8px 20px rgba(14,107,184,.12); transform: translateY(-1px); text-decoration: none; }
.zone-card.is-last { border-color: var(--primary); }
.zone-ico { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; background: linear-gradient(135deg, #0B2A4A, #1A5A95); }
.zone-ico.team { background: linear-gradient(135deg, #157A47, #1FA463); }
.zone-txt { flex: 1; min-width: 0; }
.zone-txt b { display: block; font-size: 17px; color: var(--navy); }
.zone-txt small { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zone-card em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--primary); background: #e8f1fb; padding: 2px 8px; border-radius: 999px; }
.zone-go { color: #94a3b8; }
.zone-note { font-size: 12.5px; color: var(--muted); background: #f1f6fb; border-radius: 12px; padding: 10px 12px; margin: 0; }
.zone-note i { color: var(--primary); margin-right: 4px; }
