/* ==========================================================================
   Páginas de auth/ — diseño 2026, prefijo au-: entrar y crear cuenta (login.php, register.php) y
   recuperar acceso (forgot-password, recovery-code, reset-password, verify-recovery-email).
   ========================================================================== */
.au { padding: 40px 0 80px; }
.au-wrap { width: var(--b-max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.au-wrap--single { grid-template-columns: minmax(0, 520px); justify-content: center; }
.au-side h1 { font-size: var(--b-fs-h1, clamp(34px, 3.4vw, 50px)); font-weight: 800; line-height: 1.05; }
.au-side > p { margin-top: 12px !important; color: var(--b-muted); font-size: var(--b-fs-lead, 20px); max-width: 30em; }
.au-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.au-points li { position: relative; padding-left: 34px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.au-points li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--b-green-soft); color: var(--b-green-ink); font-size: 14px; font-weight: 800; }
.au-points b { font-weight: 800; }

.au-card { padding: 32px 32px 28px; }
.au-card :is(h1, h2) { font-size: var(--b-fs-h2, 30px); font-weight: 800; line-height: 1.1; }
.au-card > p.au-sub { margin-top: 6px !important; color: var(--b-muted); font-size: 18px; }
.au-plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: var(--b-blue-soft); }
.au-plan span { font-size: 16px; font-weight: 600; }
.au-plan strong { display: block; font-size: 19px; font-weight: 800; }
.au-plan b { font-size: 20px; font-weight: 800; white-space: nowrap; }
.au-google { width: 100%; margin-top: 22px; gap: 12px; }
.au-google svg { width: 22px !important; height: 22px !important; }
.au-or { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--b-muted); font-size: 16px; font-weight: 700; }
.au-or::before, .au-or::after { content: ''; flex: 1; height: 2px; background: var(--b-line); }
.au-field { display: block; margin-bottom: 16px; }
/* Registro: campos en dos columnas para que la tarjeta sea más baja */
.au-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.au-card--wide { padding: 28px 32px 24px; }
.au-top { display: flex; gap: 16px; align-items: stretch; margin-top: 18px; }
.au-top > * { flex: 1 1 0; min-width: 0; }
.au-top .au-google { margin-top: 0; }
.au-top .au-plan { margin-top: 0; }
.au-field label { display: block; margin-bottom: 6px; font-size: 17px; font-weight: 700; }
.au-input-wrap { position: relative; }
.au-field input {
    width: 100%; min-height: 56px; padding: 10px 16px;
    border: 3px solid var(--b-line); border-radius: 16px;
    background: var(--b-surface); font-size: 19px; font-weight: 600;
}
.au-field input:focus { border-color: var(--b-blue); outline: none; }
.au-field small { display: block; margin-top: 4px; color: var(--b-muted); font-size: 15px; font-weight: 600; }
.au-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--b-muted); font-size: 15px; font-weight: 800; }
.au-eye:hover { background: var(--b-surface-2); }
.au-row { display: flex; justify-content: flex-end; margin: -6px 0 16px; }
.au-row a, .au-foot a, .au-legal a { color: var(--b-pink-ink); font-weight: 800; }
.au-submit { width: 100%; }
.au-error { margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: #fdecec; color: #9b1c1c; font-size: 16px; font-weight: 700; }
.au-legal { margin-top: 14px !important; color: var(--b-muted); font-size: 15px; text-align: center; }
.au-foot { margin-top: 20px !important; padding-top: 18px; border-top: 2px solid var(--b-line); text-align: center; font-size: 17px; font-weight: 600; }

/* Pantallas de partidas animadas (columna «Crea tu cuenta gratis») */
.au-deck {
    position: relative; height: 300px; margin-top: 26px; border-radius: 26px; overflow: hidden;
    background:
        radial-gradient(circle at 1px 1px, rgba(26, 26, 46, .09) 1.5px, transparent 0) 0 0 / 22px 22px,
        linear-gradient(135deg, var(--b-blue-soft) 0%, var(--b-pink-soft) 100%);
}
.au-sheet {
    position: absolute; left: 50%; top: 50%; width: 58%;
    padding: 5px; border-radius: 12px; background: #fff;
    box-shadow: 0 2px 4px rgba(26, 26, 46, .08), 0 18px 36px -10px rgba(26, 26, 46, .30);
    transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r));
    transition: opacity .35s ease, transform .5s cubic-bezier(.2, .8, .3, 1.15);
}
.au-sheet img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; }
.au-sheet[data-slot="0"] { --x: -30%; --y: -22%; --r: -6deg; }
.au-sheet[data-slot="1"] { --x: 30%; --y: -18%; --r: 5deg; }
.au-sheet[data-slot="2"] { --x: 0%; --y: 22%; --r: -1.5deg; z-index: 2; }
/* Al cambiar de diseño: sale hacia abajo y vuelve a entrar */
.au-sheet.is-out { opacity: 0; transform: translate(-50%, -50%) translate(var(--x), calc(var(--y) + 40px)) rotate(0deg) scale(.92); }
@media (prefers-reduced-motion: reduce) { .au-sheet { transition: none; } }

/* Botón de crear cuenta: del tamaño de su texto, no estirado */
.au-card--wide .au-submit { width: auto; min-width: 240px; padding-inline: 32px; }
.au-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.au-actions .au-legal { margin: 0 !important; text-align: center; }

@media (max-width: 900px) {
    .au-wrap { grid-template-columns: 1fr; gap: 24px; }
    .au-top { flex-direction: column; }
    .au-side { order: 2; }
    .au-side h1 { font-size: var(--b-fs-h1, 30px); }
}
@media (max-width: 640px) {
    .au { padding-top: 20px; }
    .au-deck { display: none; }
    .au-card--wide .au-submit { width: 100%; min-width: 0; }
    .au-card { padding: 22px 18px; }
    .au-card :is(h1, h2) { font-size: var(--b-fs-h2, 26px); }
    .au-grid { grid-template-columns: 1fr; }
}

/* ---- Añadidos de la versión web ---- */
body:has(.au) { background: var(--b-bg); }
.au-error { margin: 0 0 16px; }
.au-success { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: var(--b-green-soft); color: var(--b-green-ink); font-size: 16px; font-weight: 700; }
.au-row a { font-size: 16px; }
.au-foot a, .au-legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Recuperar acceso (tarjeta única) ---- */
.au-ico { width: 64px; height: 64px; margin-bottom: 14px; border-radius: 20px; display: grid; place-items: center; background: var(--b-blue-soft); font-size: 32px; line-height: 1; }
.au-ico--ok { background: var(--b-green-soft); color: var(--b-green-ink); font-weight: 800; }
.au-msg { margin-top: 18px; }
.au-form { margin-top: 22px; }
a.au-submit { display: flex; margin-top: 18px; }
.au-code { font-family: ui-monospace, 'Consolas', monospace; letter-spacing: .06em; text-transform: uppercase; }
.au-code::placeholder { text-transform: none; }
.au-links { display: grid; gap: 8px; }
