/* auth-shell.css — shell público de acceso (Bienvenid@, Registro, PIN,
 * "Revisa tu correo") y la tarjeta que lo contiene.
 *
 * Se carga SIEMPRE, junto a base/shells/player: no depende del torneo ni de
 * haber pasado por la landing. Antes vivía dentro de landing-futbol.css, que
 * sólo se inyecta en las pantallas de marketing — por eso entrar por una ruta
 * directa de quiniela renderizaba estas pantallas sin estilo, distintas al
 * mismo registro hecho desde la landing.
 *
 * El marketing de la landing sigue en landing-futbol.css y sigue siendo
 * perezoso: son ~48 KB que la mayoría de las sesiones nunca necesita.
 */



#screen-access,
#screen-login {
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 24px 0;
}

.landing-topbar,
.landing-footer,
.landing-hero,
.landing-proof,
.landing-admin-control,
.landing-story,
.landing-action-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.landing-subtitle {
  margin: 0;
  max-width: 500px;
  color: rgba(240,240,240,0.74);
  font-size: 1.02rem;
  line-height: 1.65;
}

.login-email-highlight {
  font-size: 1.25em;
  font-weight: 800;
  color: var(--text);
  overflow-wrap: anywhere;
}

.landing-action-shell {
  padding: var(--landing-section-pad) 0;
}

.login-card--public {
  min-height: auto;
  padding: 44px 24px 56px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(14,19,14,0.92), rgba(10,14,10,0.96));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 28px 70px rgba(0,0,0,0.28);
}

#screen-access[data-access-mode="create"] .login-card--public {
  background: linear-gradient(180deg, rgba(13, 22, 41, 0.96), rgba(8, 14, 28, 0.98));
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow:
    inset 0 0 0 1px rgba(96, 165, 250, 0.08),
    0 28px 70px rgba(0,0,0,0.28);
}

#screen-access[data-access-mode="create"] .landing-header::after {
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.42), transparent);
}

#screen-access[data-access-mode="create"] .landing-kicker {
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(96, 165, 250, 0.1);
  color: #bfdbfe;
}

#screen-access[data-access-mode="create"] .landing-input {
  background: rgba(15, 23, 42, 0.54);
  border-color: rgba(59, 130, 246, 0.28);
}

#screen-access[data-access-mode="create"] .landing-input:focus {
  border-color: rgba(96, 165, 250, 0.92);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

#screen-access[data-access-mode="create"] .login-name-btn {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #06110b;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.28), 0 4px 12px rgba(0,0,0,0.4);
}

#screen-access[data-access-mode="create"] .landing-copy-btn {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(15, 23, 42, 0.48);
}

#screen-access[data-access-mode="create"] .landing-copy-btn:hover {
  border-color: rgba(96, 165, 250, 0.68);
}

#screen-access[data-access-mode="create"] .landing-admin-note {
  color: rgba(191, 219, 254, 0.84);
}

#screen-access[data-access-mode="create"] .landing-code-display {
  color: #93c5fd;
  text-shadow: 0 0 24px rgba(96, 165, 250, 0.35);
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(96, 165, 250, 0.34);
}

.landing-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 22px;
  position: relative;
}

.landing-header::after {
  content: '';
  width: min(260px, 72%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,197,24,0.34), transparent);
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.landing-action-title {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.landing-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}

.landing-back-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  text-align: left;
  width: fit-content;
}

.landing-back-btn:hover { color: var(--text); }

.landing-back-btn--center {
  margin: 6px auto 0;
  text-align: center;
}

.landing-input {
  width: 100%;
  background: rgba(17, 24, 17, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  padding: 12px 14px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.landing-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,197,24,0.15);
}

.landing-admin-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0 0 4px;
  text-align: left;
}

.landing-admin-note strong { color: var(--text); }

#screen-access .landing-action-shell,
#screen-login .landing-action-shell {
  width: min(440px, calc(100% - 32px));
  padding: 0;
}

#screen-access .landing-header,
#screen-login .landing-header {
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 18px;
}@media (max-width: 767px) {

  .landing-topbar,
  .landing-footer,
  .landing-hero,
  .landing-proof,
  .landing-admin-control,
  .landing-story,
  .landing-action-shell {
    width: min(100%, calc(100% - 28px));
  }

  .landing-title,
  .landing-section-title,
  .landing-subtitle {
    max-width: none;
  }
}


.landing-action-shell {
  padding-top: 12px;
}

/* ── PIN input ───────────────────────────────────────────────────────────────── */
.pin-input-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 8px 0 4px;
}

.pin-digit {
  width: 56px;
  height: 64px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text, #fff);
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  caret-color: transparent;
  outline: none;
  -moz-appearance: textfield;
  /* Enmascarar el dígito mientras se escribe (sin perder teclado numérico) */
  -webkit-text-security: disc;
  text-security: disc;
  transition: border-color 0.15s;
}
.pin-digit::-webkit-outer-spin-button,
.pin-digit::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pin-digit:focus {
  border-color: var(--gold, #f5c518);
  background: rgba(245, 197, 24, 0.08);
}
.pin-digit--filled {
  border-color: rgba(255, 255, 255, 0.35);
}

.pin-error {
  color: #f87171;
  font-size: 0.82rem;
  text-align: center;
  margin: 6px 0 0;
}

body[data-screen="landing"] .landing-topbar,
body[data-screen="landing"] .landing-footer,
body[data-screen="landing"] .landing-hero,
body[data-screen="landing"] .landing-proof,
body[data-screen="landing"] .landing-admin-control,
body[data-screen="landing"] .landing-story,
body[data-screen="landing"] .landing-action-shell {
  width: min(1180px, calc(100% - 48px));
}

body[data-screen="landing"] .landing-subtitle {
  max-width: 560px;
  color: rgba(242, 241, 233, 0.66);
  font-size: 1.02rem;
}@media (max-width: 767px) {

  body[data-screen="landing"] .landing-topbar,
  body[data-screen="landing"] .landing-footer,
  body[data-screen="landing"] .landing-hero,
  body[data-screen="landing"] .landing-proof,
  body[data-screen="landing"] .landing-admin-control,
  body[data-screen="landing"] .landing-story,
  body[data-screen="landing"] .landing-action-shell {
    width: min(100%, calc(100% - 28px));
  }
}
