/* ───────────────────────────────────────────────────────────────────
   WOD League — Auth pages (login, register, completar-perfil)
   Estética minimal tipo Spotify con paleta WOD League (dark + cyan)
   ─────────────────────────────────────────────────────────────────── */

:root {
  --auth-bg: #050a11;
  --auth-card: rgba(255,255,255,0.02);
  --auth-input-bg: rgba(255,255,255,0.04);
  --auth-input-border: rgba(255,255,255,0.12);
  --auth-input-border-focus: var(--primary, #0ea5e9);
  --auth-text: #ffffff;
  --auth-text-muted: rgba(255,255,255,0.62);
  --auth-text-dim: rgba(255,255,255,0.40);
  --auth-divider: rgba(255,255,255,0.08);
  --auth-shadow-primary: 0 12px 32px rgba(14,165,233,0.36);
}

/* Capa principal: full page sin "card" tosca */
body.auth-page-body {
  background: var(--auth-bg);
  min-height: 100dvh;
  margin: 0;
}
.auth-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1.25rem 4rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(14,165,233,0.04), transparent 60%),
    var(--auth-bg);
}

/* Logo arriba centrado, pequeño */
.auth-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
  opacity: 0.97;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.auth-logo-link:hover { opacity: 1; transform: translateY(-1px) scale(1.03); }
.auth-logo-link img {
  /* Escala fluida: nunca menos de 130px ni más de 180px,
     se adapta al viewport (~38vw del ancho de pantalla) */
  height: clamp(130px, 38vw, 180px);
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 22px rgba(14,165,233,0.10));
}

/* Container central */
.auth-container {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
}

/* Título grande tipo Spotify */
.auth-title {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 2rem;
  color: var(--auth-text);
}
.auth-title span { color: var(--primary, #0ea5e9); }

@media (max-width: 420px) {
  .auth-title { font-size: 1.85rem; }
  .auth-shell { padding: 0.75rem 1.25rem 3rem; }
}

.auth-subtitle {
  text-align: center;
  color: var(--auth-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: -1rem 0 2rem;
}

/* Forms */
.auth-form { display: flex; flex-direction: column; gap: 0.85rem; }

.auth-field { display: flex; flex-direction: column; gap: 0.45rem; }

.auth-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--auth-text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Cuando el input dentro del mismo grupo tiene focus, el label se ilumina */
.form-group:focus-within > .auth-label,
.auth-form-group:focus-within > .auth-label {
  color: #38bdf8;
}

.auth-input {
  width: 100%;
  padding: 0.95rem 1rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  color: var(--auth-text);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: -0.005em;
  font-feature-settings: 'cv11', 'ss03';
  transition:
    border-color 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.auth-input::placeholder { color: var(--auth-text-dim); opacity: 1; }
.auth-input:hover:not(:focus):not(:disabled) {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.035);
}
.auth-input:focus {
  outline: none;
  border-color: #0ea5e9;
  background: rgba(14,165,233,0.04);
  box-shadow:
    0 0 0 3px rgba(14,165,233,0.18),
    0 0 0 1px rgba(14,165,233,0.55) inset;
}
/* Input válido (post-blur, opcional via JS class) */
.auth-input.is-valid {
  border-color: rgba(34,197,94,0.45);
}
/* Input con error */
.auth-input.is-error,
.auth-input[aria-invalid="true"] {
  border-color: rgba(239,68,68,0.55);
  background: rgba(239,68,68,0.04);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.14);
}
.auth-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255,255,255,0.015);
}

/* Select con el mismo estilo que .auth-input + flecha custom */
select.auth-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round'><polyline points='6,9 12,15 18,9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
  padding-right: 2.5rem;
  cursor: pointer;
}
select.auth-input option {
  background: #0c1219;
  color: var(--auth-text);
}
select.auth-input:invalid {
  color: var(--auth-text-dim);
}

/* Password con toggle ojo */
.auth-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-password-wrap .auth-input { padding-right: 3rem; }
.auth-password-toggle {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--auth-text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition:
    color 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-password-toggle:hover {
  color: #38bdf8;
  background: rgba(14,165,233,0.08);
}
.auth-password-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(14,165,233,0.45);
}
.auth-password-toggle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.auth-password-toggle .eye-closed { display: none; }
.auth-password-toggle.is-visible .eye-open { display: none; }
.auth-password-toggle.is-visible .eye-closed { display: block; }

/* Botón primario pill cyan — premium con glow + lift */
.auth-btn-primary {
  width: 100%;
  padding: 1.05rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, #1cb1f2 0%, #0c95d8 100%);
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition:
    background 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 0 0 1px rgba(14,165,233,0.55) inset,
    0 4px 14px rgba(14,165,233,0.32);
}
.auth-btn-primary:hover {
  background: linear-gradient(180deg, #2bb9f5 0%, #0fa5eb 100%);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.22) inset,
    0 0 0 1px rgba(56,189,248,0.7) inset,
    0 8px 24px rgba(14,165,233,0.45);
}
.auth-btn-primary:active { transform: translateY(0); transition-duration: 0.08s; }
.auth-btn-primary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(14,165,233,0.32),
    0 1px 0 rgba(255,255,255,0.22) inset,
    0 0 0 1px rgba(56,189,248,0.7) inset;
}
.auth-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 0 0 1px rgba(14,165,233,0.32) inset;
}

/* Botón secundario / link */
.auth-link-btn {
  background: transparent;
  border: 0;
  color: var(--auth-text-muted);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0.4rem 0;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.2);
  text-underline-offset: 4px;
  transition: color 0.15s;
}
.auth-link-btn:hover { color: var(--auth-text); }

/* Separador minimal: un solo punto centrado */
.auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  position: relative;
}
.auth-divider::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
}

/* Botón Google estilo Spotify (pill outline + logo G oficial) */
.btn-google-stack {
  position: relative;
  width: 100%;
}
.btn-google-wod,
.btn-apple-wod {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  color: var(--auth-text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition:
    border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
}
.btn-google-wod:hover {
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 6px 16px rgba(0,0,0,0.35);
}
.btn-google-wod:active,
.btn-apple-wod:active { transform: translateY(0); transition-duration: 0.08s; }
.btn-google-wod:focus-visible,
.btn-apple-wod:focus-visible {
  outline: none;
  border-color: rgba(56,189,248,0.55);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.25);
}
.btn-google-wod svg { flex-shrink: 0; }
.btn-apple-wod {
  margin-top: 0.75rem;
  background: #ffffff;
  border-color: rgba(255,255,255,0.9);
  color: #050a11;
  font-weight: 800;
}
.btn-apple-wod:hover {
  background: #f4f7fb;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.34);
}
.btn-apple-wod span {
  font-size: 1.15rem;
  line-height: 1;
}
.btn-google-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 999px;
}
.btn-google-overlay > div, .btn-google-overlay iframe {
  width: 100% !important;
  height: 100% !important;
}

/* Footer "¿No tienes cuenta? ..." */
.auth-footer {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--auth-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.auth-footer a, .auth-footer .as-link {
  color: var(--auth-text);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.auth-footer a:hover, .auth-footer .as-link:hover {
  color: var(--primary, #0ea5e9);
  border-color: currentColor;
}

/* Mensajes */
.auth-msg {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.45;
  margin: 0 0 0.85rem;
}
.auth-msg-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fecaca;
}
.auth-msg-info {
  background: rgba(14,165,233,0.08);
  border: 1px solid rgba(14,165,233,0.3);
  color: #bae6fd;
}
.auth-msg.hidden { display: none; }
.auth-message-slot {
  min-height: 0;
}

/* Pista para mostrar email en el step 2 (login) */
.auth-identity-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem 0.4rem 0.45rem;
  margin: 0 auto 1.5rem;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  color: var(--auth-text);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition:
    border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-identity-pill:hover {
  border-color: rgba(56,189,248,0.45);
  background: rgba(14,165,233,0.06);
  transform: translateY(-1px);
}
.auth-identity-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.25);
}
.auth-identity-pill .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 800;
}
.auth-identity-pill .change-arrow { color: var(--auth-text-muted); font-size: 0.75rem; }

/* Strength bar para password (solo register) */
.auth-strength {
  display: flex; gap: 0.25rem; margin-top: 0.45rem; height: 4px;
}
.auth-strength span {
  flex: 1; background: rgba(255,255,255,0.08); border-radius: 999px;
  transition: background 0.18s ease;
}
.auth-strength.s1 span:nth-child(1) { background: #ef4444; }
.auth-strength.s2 span:nth-child(-n+2) { background: #f59e0b; }
.auth-strength.s3 span:nth-child(-n+3) { background: #84cc16; }
.auth-strength.s4 span { background: #22c55e; }
.auth-strength-label {
  font-size: 0.74rem; color: var(--auth-text-muted); margin-top: 0.35rem;
  display: block;
}

/* Checkboxes legales */
.auth-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--auth-text-muted);
  line-height: 1.5;
  cursor: pointer;
  margin: 0.5rem 0;
}
.auth-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--primary, #0ea5e9);
  cursor: pointer;
}
.auth-check span { user-select: none; }
.auth-check a { color: var(--primary, #0ea5e9); text-decoration: underline; }
.auth-legal-summary {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(56,189,248,0.22);
  border-radius: 12px;
  background: rgba(14,165,233,0.07);
  color: var(--auth-text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}
.auth-legal-actions {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
}
.auth-legal-doc-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 46px;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.035);
  color: var(--auth-text);
  text-decoration: none;
  font-weight: 800;
}
.auth-legal-doc-btn::after {
  content: "visto";
  opacity: 0;
  color: #7dd3fc;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-legal-doc-btn.is-viewed {
  border-color: rgba(56,189,248,0.45);
  background: rgba(14,165,233,0.10);
}
.auth-legal-doc-btn.is-viewed::after { opacity: 1; }
.auth-btn-primary:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none !important;
}

/* Filas en columnas */
.auth-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
@media (max-width: 460px) { .auth-row-2 { grid-template-columns: 1fr; } }

/* Spinner mini */
.auth-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
  vertical-align: -2px;
  margin-right: 0.4rem;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

/* Animación de transición entre estados login (step1 → step2) */
.auth-step { animation: auth-fade-in 0.25s ease; }
@keyframes auth-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Botón secundario "atrás" */
.auth-back {
  background: transparent;
  border: 0;
  color: var(--auth-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.5rem 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
}
.auth-back:hover { color: var(--auth-text); }

/* Progress bar multi-step (4 puntitos cyan) */
.auth-progress {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin: 0 0 2rem;
}
.auth-progress span {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  transition: background 0.25s ease;
}
.auth-progress span.is-active {
  background: var(--primary, #0ea5e9);
}
.auth-progress span.is-done {
  background: rgba(14,165,233,0.5);
}

/* Top nav del multi-step (atrás + step counter) */
.auth-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.auth-step-header .step-counter {
  font-size: 0.75rem;
  color: var(--auth-text-muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Hint pequeño debajo del Google */
.auth-hint {
  margin: 0.95rem auto 0;
  max-width: 320px;
  color: var(--auth-text-muted);
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.55;
}

/* Stack de errores inline en formularios */
.auth-form-error {
  font-size: 0.75rem;
  color: #fca5a5;
  margin-top: 0.3rem;
}

/* Modal legal limpio */
.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9999;
  backdrop-filter: blur(6px);
}
.auth-modal.open { display: flex; }
.auth-modal-card {
  background: #0c1219;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 1.75rem;
  color: var(--auth-text);
}
.auth-modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-modal-close {
  background: transparent;
  border: 0;
  color: var(--auth-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.auth-modal-close:hover { color: var(--auth-text); }
.auth-modal-body p {
  color: var(--auth-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 0.85rem;
}

/* Auth cinematic refresh for the isolated IP test variant */
body.auth-page-body {
  color: #f4f8fd;
  background:
    radial-gradient(circle at 18% 16%, rgba(56,189,248,0.18), transparent 30%),
    radial-gradient(circle at 84% 72%, rgba(248,113,113,0.10), transparent 32%),
    #050a11;
  overflow-x: hidden;
}

body.auth-page-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(115deg, rgba(0,0,0,0.80), transparent 68%);
}

body.auth-page-body .auth-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 486px);
  align-items: stretch;
  gap: 0;
  min-height: 100dvh;
  padding: 14px;
  background:
    radial-gradient(circle at 24% 18%, rgba(14,165,233,0.20), transparent 26%),
    linear-gradient(135deg, #050a11 0%, #08131d 45%, #050a11 100%);
}

body.auth-page-body .auth-shell::before {
  content: "WOD\A LEAGUE";
  grid-column: 1;
  min-height: calc(100dvh - 28px);
  display: flex;
  align-items: flex-end;
  white-space: pre-line;
  padding: clamp(32px, 5.8vw, 76px);
  border: 1px solid rgba(255,255,255,0.09);
  border-right: 0;
  color: rgba(244,248,253,0.92);
  font-size: clamp(76px, 12vw, 168px);
  font-weight: 950;
  line-height: 0.78;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  background:
    linear-gradient(0deg, rgba(5,10,17,0.18), rgba(5,10,17,0.18)),
    radial-gradient(circle at 62% 34%, rgba(56,189,248,0.24), transparent 28%),
    linear-gradient(140deg, rgba(255,255,255,0.07), rgba(255,255,255,0.01) 44%, rgba(14,165,233,0.12));
}

body.auth-page-body .auth-shell::after {
  content: "TEMPORADA 2026\A ACCESO ATLETAS";
  position: absolute;
  top: 42px;
  left: 42px;
  z-index: 1;
  white-space: pre-line;
  color: rgba(244,248,253,0.62);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.65;
  letter-spacing: 0.18em;
}

body.auth-page-body .auth-logo-link {
  position: absolute;
  top: 120px;
  left: 42px;
  z-index: 2;
  margin: 0;
}

body.auth-page-body .auth-logo-link img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(14,165,233,0.22));
}

body.auth-page-body .auth-container {
  grid-column: 2;
  align-self: stretch;
  justify-content: center;
  width: 100%;
  max-width: none;
  padding: clamp(30px, 4.2vw, 58px);
  border: 1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(180deg, rgba(8,19,29,0.86), rgba(5,10,17,0.78));
  box-shadow: 0 24px 70px rgba(0,0,0,0.34);
  backdrop-filter: blur(18px);
}

body.auth-page-body .auth-title {
  max-width: 10ch;
  margin: 0 0 1.25rem;
  color: #f4f8fd;
  text-align: left;
  font-size: clamp(2.55rem, 5vw, 4.85rem);
  font-weight: 950;
  line-height: 0.84;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

body.auth-page-body .auth-title span {
  color: #38bdf8;
  font-style: italic;
}

body.auth-page-body .auth-subtitle,
body.auth-page-body .auth-footer,
body.auth-page-body .auth-hint {
  text-align: left;
}

body.auth-page-body .auth-subtitle {
  margin: 0 0 1.8rem;
  max-width: 34rem;
  color: rgba(244,248,253,0.66);
}

body.auth-page-body .auth-form {
  gap: 1rem;
}

body.auth-page-body .auth-label {
  color: rgba(244,248,253,0.62);
  letter-spacing: 0.14em;
}

body.auth-page-body .auth-input,
body.auth-page-body select.auth-input,
body.auth-page-body textarea.auth-input {
  min-height: 54px;
  border-radius: 8px;
  border-color: rgba(244,248,253,0.13);
  background: rgba(244,248,253,0.045);
  color: #f4f8fd;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
}

body.auth-page-body .auth-input:focus,
body.auth-page-body select.auth-input:focus,
body.auth-page-body textarea.auth-input:focus {
  border-color: rgba(56,189,248,0.70);
  background: rgba(14,165,233,0.075);
  box-shadow:
    0 0 0 3px rgba(56,189,248,0.13),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

body.auth-page-body .auth-btn-primary,
body.auth-page-body .btn-google-wod,
body.auth-page-body .auth-card .btn,
body.auth-page-body .auth-page .btn-primary {
  min-height: 54px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body.auth-page-body .auth-btn-primary {
  color: #03111d;
  background: #38bdf8;
  box-shadow: 0 16px 38px rgba(56,189,248,0.26);
}

body.auth-page-body .auth-btn-primary:hover {
  background: #7dd3fc;
  box-shadow: 0 20px 46px rgba(56,189,248,0.32);
}

body.auth-page-body .btn-google-wod {
  border-color: rgba(244,248,253,0.14);
  background: rgba(244,248,253,0.045);
}

body.auth-page-body .auth-divider::before {
  width: 100%;
  height: 1px;
  border-radius: 0;
  background: rgba(244,248,253,0.10);
}

body.auth-page-body .auth-divider span {
  background: #07111b;
  color: rgba(244,248,253,0.48);
}

body.auth-page-body .auth-identity-pill,
body.auth-page-body .auth-mode-card {
  border-radius: 8px;
  border-color: rgba(244,248,253,0.12);
  background: rgba(244,248,253,0.045);
}

body.auth-page-body .auth-progress span {
  height: 3px;
  border-radius: 0;
}

body.auth-page-body .auth-checkbox input {
  border-radius: 5px;
}

body.auth-page-body .auth-modal-card {
  border-radius: 8px;
}

body.auth-page-body .auth-page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(circle at 22% 18%, rgba(56,189,248,0.18), transparent 30%),
    linear-gradient(135deg, #050a11, #08131d 50%, #050a11);
}

body.auth-page-body .auth-card {
  width: min(100%, 480px);
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid rgba(244,248,253,0.11);
  border-radius: 8px;
  color: #f4f8fd;
  background: rgba(5,10,17,0.80);
  box-shadow: 0 24px 70px rgba(0,0,0,0.34);
  backdrop-filter: blur(18px);
}

body.auth-page-body .auth-card h2 {
  margin: 0 0 0.8rem;
  color: #f4f8fd;
  font-size: clamp(2.25rem, 8vw, 4.2rem);
  font-weight: 950;
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

body.auth-page-body .auth-card .subtitle {
  margin: 0 0 1.4rem;
  color: rgba(244,248,253,0.66);
}

body.auth-page-body .auth-card .alert {
  margin: 1rem 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(244,248,253,0.10);
  border-radius: 8px;
  color: rgba(244,248,253,0.76);
  background: rgba(244,248,253,0.045);
}

body.auth-page-body .auth-card .alert-success {
  border-color: rgba(34,197,94,0.30);
  background: rgba(34,197,94,0.10);
}

body.auth-page-body .auth-card .alert-danger {
  border-color: rgba(248,113,113,0.34);
  background: rgba(248,113,113,0.10);
}

body.auth-page-body .auth-card .alert-info {
  border-color: rgba(56,189,248,0.30);
  background: rgba(56,189,248,0.10);
}

@media (max-width: 860px) {
  body.auth-page-body {
    overflow-y: auto;
  }

  body.auth-page-body::before {
    background-size: 52px 52px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.62), transparent 76%);
  }

  body.auth-page-body .auth-shell {
    display: flex;
    min-height: 100dvh;
    padding: 10px;
    background:
      radial-gradient(circle at 20% 6%, rgba(14,165,233,0.22), transparent 34%),
      #050a11;
  }

  body.auth-page-body .auth-shell::before,
  body.auth-page-body .auth-shell::after {
    display: none;
  }

  body.auth-page-body .auth-logo-link {
    position: static;
    margin: 8px auto 16px;
  }

  body.auth-page-body .auth-logo-link img {
    width: auto;
    height: 56px;
  }

  body.auth-page-body .auth-container {
    width: 100%;
    min-height: auto;
    padding: 24px 16px 34px;
    border-radius: 0;
    justify-content: flex-start;
  }

  body.auth-page-body .auth-title {
    max-width: 9ch;
    font-size: clamp(2.18rem, 13vw, 3.7rem);
    line-height: 0.86;
  }

  body.auth-page-body .auth-subtitle {
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
  }

  body.auth-page-body .auth-row-2,
  body.auth-page-body .auth-mode-grid {
    grid-template-columns: 1fr;
  }

  body.auth-page-body .auth-input,
  body.auth-page-body .auth-btn-primary,
  body.auth-page-body .btn-google-wod {
    min-height: 54px;
    font-size: 16px;
  }

  body.auth-page-body .auth-btn-primary,
  body.auth-page-body .btn-google-wod {
    font-size: 0.76rem;
  }

  body.auth-page-body .auth-footer,
  body.auth-page-body .auth-hint {
    max-width: none;
  }
}

@media (max-width: 380px) {
  body.auth-page-body .auth-container {
    padding-inline: 13px;
  }

  body.auth-page-body .auth-title {
    font-size: clamp(2rem, 12vw, 3rem);
  }
}

/* Mobile-app auth skin: match the provided auth references */
body.auth-page-body.auth-app-skin {
  --auth-app-bg: #050a11;
  --auth-app-elev: #0b121d;
  --auth-app-panel: #06101b;
  --auth-app-rule: rgba(244,248,253,0.09);
  --auth-app-rule-strong: rgba(244,248,253,0.18);
  --auth-app-muted: rgba(244,248,253,0.62);
  --auth-app-soft: rgba(244,248,253,0.38);
  --auth-app-accent: #38bdf8;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  margin: 0;
  overflow-x: hidden;
  background: #03070d;
  color: #f4f8fd;
  -webkit-tap-highlight-color: transparent;
}

body.auth-page-body.auth-app-skin::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(56,189,248,0.15), transparent 42%),
    radial-gradient(ellipse at 22% 18%, rgba(14,165,233,0.10), transparent 36%),
    #03070d;
  mask-image: none;
}

body.auth-page-body.auth-app-skin::after {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  color: rgba(244,248,253,0.52);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  pointer-events: none;
}

body.auth-login-page::after { content: "02  ACCESO"; }
body.auth-register-page::after { content: "03  REGISTRO"; }
body.auth-reset-page::after { content: "05  NUEVA CLAVE"; }
body.auth-verify-page::after { content: "06  VERIFICAR"; }

body.auth-app-skin .auth-shell {
  position: relative;
  isolation: isolate;
  width: min(100%, 430px);
  min-height: 100svh;
  display: flex;
  padding: 8px;
  margin: 0 auto;
  border: 1px solid rgba(244,248,253,0.10);
  border-radius: 42px;
  background: #111a27;
  box-shadow:
    0 0 0 7px rgba(22,31,45,0.92),
    0 22px 70px rgba(0,0,0,0.48),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

body.auth-app-skin .auth-shell::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 0;
  border: 1px solid rgba(244,248,253,0.06);
  border-radius: 34px;
  pointer-events: none;
}

body.auth-app-skin .auth-shell::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 128px;
  z-index: 0;
  border-radius: 34px 34px 18px 18px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(56,189,248,0.18), transparent 62%),
    linear-gradient(180deg, rgba(12,37,55,0.92), rgba(5,10,17,0));
  pointer-events: none;
}

body.auth-app-skin .auth-logo-link {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 4;
  width: 38px;
  height: 38px;
  margin: 0;
  border: 1px solid rgba(244,248,253,0.18);
  border-radius: 50%;
  background: rgba(244,248,253,0.025);
  color: rgba(244,248,253,0.86);
}

body.auth-app-skin .auth-logo-link img {
  display: none;
}

body.auth-app-skin .auth-logo-link::before {
  content: "";
  width: 9px;
  height: 9px;
  border-left: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg) translate(1px,-1px);
}

body.auth-app-skin .auth-logo-link:hover {
  transform: none;
  border-color: rgba(56,189,248,0.48);
}

body.auth-app-skin .auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none !important;
  min-height: calc(100svh - 16px);
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  padding: 92px 22px 10px;
  overflow: hidden;
  border: 0;
  border-radius: 34px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(56,189,248,0.16), transparent 42%),
    linear-gradient(180deg, #061522 0%, #050a11 34%, #050a11 100%);
  box-shadow: none;
  backdrop-filter: none;
}

body.auth-app-skin .auth-container::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 3;
  width: 94px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #02060b;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

body.auth-app-skin .auth-container::after {
  content: "";
  position: absolute;
  top: 62px;
  left: 50%;
  z-index: 3;
  width: 62px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 2px;
  background:
    linear-gradient(90deg,
      var(--auth-app-accent) 0 22px,
      transparent 22px 30px,
      rgba(244,248,253,0.18) 30px 45px,
      transparent 45px 52px,
      rgba(244,248,253,0.18) 52px 62px);
}

body.auth-app-skin .auth-step {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - 118px);
  flex: 1 1 auto;
  flex-direction: column;
}

body.auth-app-skin .auth-step:not([style]),
body.auth-app-skin .auth-step[style*="display: block"] {
  display: flex !important;
}

body.auth-app-skin #step1::before,
body.auth-app-skin .auth-card::before {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 22px;
  padding: 6px 10px;
  border: 1px solid rgba(56,189,248,0.34);
  border-radius: 999px;
  color: var(--auth-app-accent);
  background: rgba(56,189,248,0.06);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

body.auth-login-page #step1::before { content: "• ACCESO · TEMP. 2026"; }
body.auth-register-page #step1::before { content: "• INSCRIPCIÓN · TEMP. 2026"; }
body.auth-reset-page .auth-container::after {
  width: 36px;
  background:
    linear-gradient(90deg,
      var(--auth-app-accent) 0 18px,
      transparent 18px 26px,
      rgba(244,248,253,0.18) 26px 36px);
}

body.auth-app-skin .auth-title,
body.auth-app-skin .auth-card h2 {
  order: 2;
  max-width: 10ch;
  margin: 0 0 12px;
  color: #f4f8fd;
  text-align: left;
  font-size: clamp(2.15rem, 10vw, 2.55rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-transform: none;
}

body.auth-app-skin .auth-title span,
body.auth-app-skin .auth-card h2 span {
  color: var(--auth-app-accent);
  font-style: italic;
}

body.auth-app-skin .auth-subtitle,
body.auth-app-skin .auth-card .subtitle {
  order: 3;
  max-width: 31ch;
  margin: 0 0 28px;
  color: var(--auth-app-muted);
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
}

body.auth-app-skin .auth-form {
  display: contents;
}

body.auth-app-skin .auth-field,
body.auth-app-skin .auth-msg {
  order: 10;
}

body.auth-app-skin .auth-message-slot {
  order: 9;
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

body.auth-app-skin .auth-message-slot .auth-msg {
  order: 0;
  margin: 0;
}

body.auth-app-skin .auth-message-slot .auth-msg.hidden {
  display: none !important;
}

body.auth-app-skin .auth-message-slot:has(.auth-msg:not(.hidden)) {
  margin: 0 0 14px;
}

body.auth-app-skin .auth-field {
  margin: 0 0 16px;
}

body.auth-app-skin .auth-label {
  margin: 0 0 8px;
  color: var(--auth-app-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

body.auth-app-skin .auth-input,
body.auth-app-skin select.auth-input,
body.auth-app-skin textarea.auth-input {
  min-height: 54px;
  padding: 15px 16px;
  border: 1.5px solid var(--auth-app-rule);
  border-radius: 10px;
  background: var(--auth-app-elev);
  color: #f4f8fd;
  font-size: 16px;
  font-weight: 600;
}

body.auth-app-skin .auth-input::placeholder {
  color: var(--auth-app-soft);
}

body.auth-app-skin .auth-input:focus,
body.auth-app-skin select.auth-input:focus,
body.auth-app-skin textarea.auth-input:focus {
  border-color: rgba(56,189,248,0.72);
  background: rgba(56,189,248,0.045);
  box-shadow: none;
}

body.auth-app-skin .auth-password-wrap,
body.auth-app-skin .auth-pw-field {
  position: relative;
}

body.auth-app-skin .auth-password-wrap .auth-input,
body.auth-app-skin .auth-pw-field .auth-input {
  padding-right: 56px;
}

body.auth-app-skin .auth-password-toggle,
body.auth-app-skin .auth-pw-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  width: auto;
  height: auto;
  padding: 8px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--auth-app-muted);
  font-size: 11px;
  font-weight: 900;
}

body.auth-app-skin .auth-password-toggle svg,
body.auth-app-skin .auth-pw-toggle svg {
  display: none;
}

body.auth-app-skin .auth-password-toggle::after,
body.auth-app-skin .auth-pw-toggle::after {
  content: "Ver";
}

body.auth-app-skin .auth-divider {
  order: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
  color: var(--auth-app-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.auth-app-skin .auth-divider::before,
body.auth-app-skin .auth-divider::after {
  content: "";
  flex: 1;
  width: auto;
  height: 1px;
  background: var(--auth-app-rule);
}

body.auth-app-skin .auth-divider::after {
  display: block;
}

body.auth-app-skin .auth-divider span {
  display: none;
}

body.auth-app-skin .auth-divider {
  font-size: 0;
}

body.auth-app-skin .auth-divider::before {
  content: "";
}

body.auth-app-skin .auth-divider::after {
  content: "";
}

body.auth-app-skin .auth-divider {
  text-indent: 0;
}

body.auth-app-skin .auth-divider::marker {
  content: "";
}

body.auth-app-skin .auth-divider {
  min-height: 17px;
}

body.auth-app-skin .auth-divider::before {
  box-shadow: 104px 0 0 -103px var(--auth-app-soft);
}

body.auth-app-skin .btn-google-stack,
body.auth-app-skin #google-signin-wrap {
  order: 30;
  flex: 0 0 auto;
}

body.auth-app-skin .btn-apple-wod {
  order: 31;
  flex: 0 0 auto;
  margin: 10px 0 0;
}

body.auth-app-skin .btn-google-wod,
body.auth-app-skin .btn-apple-wod {
  min-height: 56px;
  border: 0;
  border-radius: 10px;
  background: #f4f8fd;
  color: #050a11;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

body.auth-app-skin .btn-apple-wod:hover {
  background: #f4f8fd;
  transform: none;
  box-shadow: none;
}

body.auth-app-skin .auth-btn-primary,
body.auth-app-skin .auth-card .btn,
body.auth-app-skin .auth-page .btn-primary {
  order: 15;
  min-height: 56px;
  margin-top: 10px;
  border: 0;
  border-radius: 10px;
  background: var(--auth-app-accent);
  color: #03111d;
  box-shadow: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

body.auth-app-skin .auth-btn-primary::after,
body.auth-app-skin .auth-card .btn::after {
  content: "→";
  margin-left: 10px;
}

body.auth-app-skin .auth-btn-primary:hover {
  background: #54c7fb;
  transform: none;
  box-shadow: none;
}

body.auth-app-skin .auth-footer {
  order: 90;
  margin: 10px 0 0;
  color: var(--auth-app-muted);
  text-align: center;
  font-size: 11px;
}

body.auth-app-skin .auth-footer a,
body.auth-app-skin .auth-link-btn,
body.auth-app-skin .as-link {
  color: var(--auth-app-accent);
  font-weight: 850;
}

body.auth-app-skin .auth-identity-pill {
  order: 4;
  align-self: flex-start;
  margin: 0 0 22px !important;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--auth-app-rule-strong);
  border-radius: 999px;
  background: rgba(56,189,248,0.04);
  color: #f4f8fd;
  font-size: 13px;
  font-weight: 750;
}

body.auth-app-skin .auth-identity-pill .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--auth-app-accent);
  color: #050a11;
}

body.auth-app-skin .auth-identity-pill .change-arrow {
  color: var(--auth-app-muted);
  font-size: 0;
}

body.auth-app-skin .auth-identity-pill .change-arrow::after {
  content: "×";
  font-size: 16px;
}

body.auth-app-skin .auth-progress {
  order: 1;
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: -28px 0 28px;
}

body.auth-app-skin .auth-progress span {
  width: 22px;
  flex: 0 0 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--auth-app-rule-strong);
}

body.auth-app-skin .auth-progress .is-done,
body.auth-app-skin .auth-progress .is-active {
  background: var(--auth-app-accent);
}

body.auth-app-skin .auth-step-header {
  order: 0;
  margin: -18px 0 24px;
}

body.auth-app-skin .auth-back {
  width: 38px;
  height: 38px;
  border: 1px solid var(--auth-app-rule-strong);
  border-radius: 50%;
  background: rgba(244,248,253,0.025);
  color: #f4f8fd;
  font-size: 0;
}

body.auth-app-skin .auth-back::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-left: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg) translate(1px,-1px);
}

body.auth-app-skin .step-counter {
  color: rgba(244,248,253,0.48);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
}

body.auth-app-skin .auth-strength,
body.auth-app-skin .auth-strength-label,
body.auth-app-skin .auth-pw-help {
  order: 11;
  color: var(--auth-app-muted);
}

body.auth-app-skin .auth-msg {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
}

body.auth-app-skin .hidden {
  display: none !important;
}

body.auth-app-skin .auth-page {
  min-height: 100svh;
  width: min(100%, 430px);
  padding: 8px;
  background: transparent;
}

body.auth-app-skin .auth-card {
  position: relative;
  width: 100%;
  min-height: calc(100svh - 16px);
  display: flex;
  flex-direction: column;
  padding: 92px 22px 22px;
  border: 1px solid rgba(244,248,253,0.10);
  border-radius: 34px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(56,189,248,0.16), transparent 42%),
    linear-gradient(180deg, #061522 0%, #050a11 34%, #050a11 100%);
}

body.auth-verify-page .auth-card::before {
  content: "• VERIFICACIÓN · EMAIL";
}

body.auth-app-skin .auth-card h2 {
  max-width: 11ch;
}

body.auth-app-skin .auth-card h2::first-letter {
  color: #f4f8fd;
}

body.auth-app-skin .auth-card .alert {
  margin: 8px 0 18px;
  border-radius: 10px;
  background: var(--auth-app-elev);
}

@media (min-width: 700px) {
  body.auth-page-body.auth-app-skin {
    align-items: center;
    padding: 32px 0;
  }

  body.auth-app-skin .auth-shell,
  body.auth-app-skin .auth-page {
    min-height: min(760px, calc(100svh - 64px));
  }

  body.auth-app-skin .auth-container,
  body.auth-app-skin .auth-card {
    min-height: min(744px, calc(100svh - 80px));
  }

  body.auth-app-skin .auth-step {
    min-height: min(626px, calc(100svh - 182px));
  }
}

@media (max-width: 430px) {
  body.auth-app-skin .auth-shell {
    width: 100%;
    padding: 7px;
    border-radius: 36px;
    border: 1px solid rgba(244,248,253,0.10);
    box-shadow:
      0 0 0 4px rgba(22,31,45,0.92),
      0 18px 50px rgba(0,0,0,0.42);
  }

  body.auth-app-skin .auth-shell::before {
    inset: 6px;
    border-radius: 30px;
  }

  body.auth-app-skin .auth-shell::after {
    border-radius: 30px 30px 16px 16px;
  }

  body.auth-app-skin .auth-container {
    border-radius: 30px;
  }

  body.auth-app-skin .auth-container,
  body.auth-app-skin .auth-card {
    padding-inline: 22px;
  }
}

body.auth-app-skin .auth-divider {
  position: relative;
  display: block;
  order: 20;
  height: 22px;
  min-height: 22px;
  margin: 24px 0 14px;
  border-top: 1px solid var(--auth-app-rule);
  font-size: 0;
}

body.auth-app-skin .auth-divider::before {
  content: "o";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 28px;
  height: 16px;
  transform: translateX(-50%);
  color: var(--auth-app-soft);
  background: #050a11;
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  box-shadow: none;
}

body.auth-app-skin .auth-divider::after {
  display: none;
}

/* Final guard: desktop must not fall back to the old split WOD layout */
html body.auth-page-body.auth-app-skin {
  display: grid;
  place-items: center;
  padding: 24px;
}

html body.auth-page-body.auth-app-skin .auth-shell {
  display: flex;
  grid-template-columns: none;
  width: min(100%, 430px);
  min-height: min(760px, calc(100svh - 48px));
  margin: 0 auto;
}

html body.auth-page-body.auth-app-skin .auth-shell::before {
  content: "";
  display: block;
  min-height: auto;
  padding: 0;
  border-right: 1px solid rgba(244,248,253,0.06);
  color: transparent;
  font-size: 0;
  line-height: 0;
  background: transparent;
}

html body.auth-page-body.auth-app-skin .auth-shell::after {
  content: "";
}

html body.auth-page-body.auth-app-skin .auth-container {
  grid-column: auto;
  min-height: min(744px, calc(100svh - 64px));
  padding: 92px 22px 10px;
}

html body.auth-page-body.auth-app-skin .auth-logo-link {
  top: 30px;
  left: 30px;
}

@media (max-width: 520px) {
  html body.auth-page-body.auth-app-skin {
    display: flex;
    padding: 0;
  }

  html body.auth-page-body.auth-app-skin .auth-shell {
    min-height: 100svh;
  }

  html body.auth-page-body.auth-app-skin .auth-container {
    min-height: calc(100svh - 14px);
  }
}

/* Clean auth surface: no fake phone frame, no notch, no progress bars */
html body.auth-page-body.auth-app-skin {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: clamp(18px, 4vw, 52px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(56,189,248,0.14), transparent 42%),
    radial-gradient(ellipse at 18% 18%, rgba(14,165,233,0.10), transparent 34%),
    #050a11;
}

html body.auth-page-body.auth-app-skin::after {
  content: none;
}

html body.auth-page-body.auth-app-skin .auth-shell {
  width: min(100%, 430px);
  min-height: auto;
  display: flex;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html body.auth-page-body.auth-app-skin .auth-shell::before,
html body.auth-page-body.auth-app-skin .auth-shell::after,
html body.auth-page-body.auth-app-skin .auth-container::before,
html body.auth-page-body.auth-app-skin .auth-container::after {
  content: none;
  display: none;
}

html body.auth-page-body.auth-app-skin .auth-container {
  width: 100%;
  min-height: min(680px, calc(100svh - 72px));
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

html body.auth-page-body.auth-app-skin .auth-step {
  min-height: min(680px, calc(100svh - 72px));
  padding: 78px 0 0;
}

html body.auth-page-body.auth-app-skin .auth-logo-link {
  top: 0;
  left: 0;
}

html body.auth-page-body.auth-app-skin .auth-progress,
html body.auth-page-body.auth-app-skin .auth-step-header .step-counter {
  display: none;
}

html body.auth-page-body.auth-app-skin .auth-step-header {
  margin: 0 0 28px;
}

html body.auth-page-body.auth-app-skin .auth-title {
  font-size: clamp(2.45rem, 6vw, 3.15rem);
}

html body.auth-page-body.auth-app-skin .auth-btn-primary {
  margin-top: auto;
}

html body.auth-page-body.auth-app-skin .auth-page {
  width: min(100%, 430px);
  min-height: auto;
  padding: 0;
  background: transparent;
}

html body.auth-page-body.auth-app-skin .auth-card {
  min-height: min(680px, calc(100svh - 72px));
  padding: 78px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 520px) {
  html body.auth-page-body.auth-app-skin {
    align-items: stretch;
    padding: 18px 22px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  html body.auth-page-body.auth-app-skin .auth-shell,
  html body.auth-page-body.auth-app-skin .auth-page {
    width: 100%;
    min-height: 100%;
  }

  html body.auth-page-body.auth-app-skin .auth-container,
  html body.auth-page-body.auth-app-skin .auth-step,
  html body.auth-page-body.auth-app-skin .auth-card {
    min-height: calc(100svh - 36px - env(safe-area-inset-bottom, 0px));
  }

  html body.auth-page-body.auth-app-skin .auth-title {
    font-size: clamp(2.15rem, 10.8vw, 2.75rem);
  }
}

/* Auth app5 hard reset: real web/mobile screens, no fake device chrome */
html body.auth-page-body.auth-app-skin,
html body.auth-page-body.auth-app-skin.auth-login-page,
html body.auth-page-body.auth-app-skin.auth-register-page,
html body.auth-page-body.auth-app-skin.auth-reset-page,
html body.auth-page-body.auth-app-skin.auth-verify-page {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100svh !important;
  margin: 0 !important;
  padding: clamp(24px, 6vw, 72px) !important;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(56,189,248,0.13), transparent 42%),
    linear-gradient(180deg, #061522 0%, #050a11 52%, #03070d 100%) !important;
  overflow-x: hidden !important;
}

html body.auth-page-body.auth-app-skin::after,
html body.auth-login-page::after,
html body.auth-register-page::after,
html body.auth-reset-page::after,
html body.auth-verify-page::after {
  content: none !important;
  display: none !important;
}

html body.auth-page-body.auth-app-skin .auth-shell,
html body.auth-page-body.auth-app-skin .auth-page {
  position: relative !important;
  isolation: isolate !important;
  display: flex !important;
  width: min(100%, 430px) !important;
  min-height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.auth-page-body.auth-app-skin .auth-shell::before,
html body.auth-page-body.auth-app-skin .auth-shell::after,
html body.auth-page-body.auth-app-skin .auth-container::before,
html body.auth-page-body.auth-app-skin .auth-container::after,
html body.auth-page-body.auth-app-skin .auth-card::before {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.auth-page-body.auth-app-skin .auth-container,
html body.auth-page-body.auth-app-skin .auth-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-height: min(640px, calc(100svh - 96px)) !important;
  max-width: 430px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html body.auth-page-body.auth-app-skin .auth-logo-link {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 5 !important;
  width: 38px !important;
  height: 38px !important;
  border: 1px solid rgba(244,248,253,0.18) !important;
  border-radius: 50% !important;
  background: rgba(244,248,253,0.025) !important;
}

html body.auth-page-body.auth-app-skin .auth-step {
  min-height: min(640px, calc(100svh - 96px)) !important;
  padding: 72px 0 0 !important;
}

html body.auth-page-body.auth-app-skin .auth-progress,
html body.auth-page-body.auth-app-skin .auth-step-header .step-counter {
  display: none !important;
}

html body.auth-page-body.auth-app-skin .auth-title,
html body.auth-page-body.auth-app-skin .auth-card h2 {
  max-width: 11ch !important;
  margin-bottom: 12px !important;
  font-size: clamp(2.45rem, 5vw, 3.35rem) !important;
  line-height: 0.94 !important;
}

html body.auth-page-body.auth-app-skin .auth-btn-primary {
  margin-top: auto !important;
}

@media (min-width: 900px) {
  html body.auth-page-body.auth-app-skin .auth-shell,
  html body.auth-page-body.auth-app-skin .auth-page {
    width: min(100%, 460px) !important;
  }

  html body.auth-page-body.auth-app-skin .auth-container,
  html body.auth-page-body.auth-app-skin .auth-card {
    max-width: 460px !important;
  }
}

@media (max-width: 520px) {
  html body.auth-page-body.auth-app-skin,
  html body.auth-page-body.auth-app-skin.auth-login-page,
  html body.auth-page-body.auth-app-skin.auth-register-page,
  html body.auth-page-body.auth-app-skin.auth-reset-page,
  html body.auth-page-body.auth-app-skin.auth-verify-page {
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 20px 22px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body.auth-page-body.auth-app-skin .auth-shell,
  html body.auth-page-body.auth-app-skin .auth-page,
  html body.auth-page-body.auth-app-skin .auth-container,
  html body.auth-page-body.auth-app-skin .auth-card,
  html body.auth-page-body.auth-app-skin .auth-step {
    min-height: calc(100svh - 40px - env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Auth app6: full-bleed mobile background and cleaner desktop */
html {
  background: #050a11;
}

html body.auth-page-body.auth-app-skin {
  background-color: #050a11 !important;
}

html body.auth-page-body.auth-app-skin::before {
  inset: -80px !important;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(56,189,248,0.14), transparent 42%),
    linear-gradient(180deg, #061522 0%, #050a11 52%, #03070d 100%) !important;
}

@media (min-width: 700px) {
  html body.auth-page-body.auth-app-skin .auth-logo-link,
  html body.auth-page-body.auth-app-skin .auth-back {
    display: none !important;
  }

  html body.auth-page-body.auth-app-skin .auth-step {
    padding-top: 0 !important;
  }
}

@media (max-width: 520px) {
  html,
  html body.auth-page-body.auth-app-skin,
  html body.auth-page-body.auth-app-skin.auth-login-page,
  html body.auth-page-body.auth-app-skin.auth-register-page,
  html body.auth-page-body.auth-app-skin.auth-reset-page,
  html body.auth-page-body.auth-app-skin.auth-verify-page {
    min-height: 100dvh !important;
    background-color: #050a11 !important;
  }

  html body.auth-page-body.auth-app-skin,
  html body.auth-page-body.auth-app-skin.auth-login-page,
  html body.auth-page-body.auth-app-skin.auth-register-page,
  html body.auth-page-body.auth-app-skin.auth-reset-page,
  html body.auth-page-body.auth-app-skin.auth-verify-page {
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
  }

  html body.auth-page-body.auth-app-skin .auth-shell,
  html body.auth-page-body.auth-app-skin .auth-page,
  html body.auth-page-body.auth-app-skin .auth-container,
  html body.auth-page-body.auth-app-skin .auth-card,
  html body.auth-page-body.auth-app-skin .auth-step {
    width: 100% !important;
    min-height: 100dvh !important;
  }

  html body.auth-page-body.auth-app-skin .auth-step,
  html body.auth-page-body.auth-app-skin .auth-card {
    padding: calc(72px + env(safe-area-inset-top, 0px)) 22px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body.auth-page-body.auth-app-skin .auth-logo-link {
    top: calc(20px + env(safe-area-inset-top, 0px)) !important;
    left: 22px !important;
  }
}
