/* ── Never show the PWA install prompts while the user is mid auth-flow ─── */
#pwa-fab,
#pwa-install-banner { display: none !important; }

.auth-epic-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative;
}
@media (max-width: 860px) {
    .auth-epic-layout { grid-template-columns: 1fr; }
}

.auth-epic-left {
    position: relative;
    overflow: hidden;
    background: var(--tbt-bg-1);
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 860px) {
    .auth-epic-left { display: none; }
}
.auth-epic-left::after {
    content: '';
    position: absolute;
    right: 0; top: 10%; bottom: 10%;
    width: 1px;
    background: linear-gradient(180deg,
        transparent,
        var(--tbt-jade, #e8602c) 40%,
        var(--tbt-amber, #c9a227) 70%,
        transparent);
    opacity: 0.3;
}

.auth-epic-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(232,96,44,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232,96,44,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

#auth-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}
.auth-orb-1 { width: 320px; height: 320px; background: rgba(232,96,44,.12); top: -80px; left: -80px; }
.auth-orb-2 { width: 240px; height: 240px; background: rgba(201,162,39,.08); bottom: -60px; right: -60px; }
.auth-orb-3 {
    width: 180px; height: 180px;
    background: rgba(232,96,44,.07);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.auth-rune {
    position: absolute;
    width: 48px;
    height: 48px;
    opacity: 0.06;
    pointer-events: none;
    user-select: none;
}
.auth-rune svg { width: 100%; height: 100%; }
.auth-rune-1 { top: 12%; left: 8%; width: 56px; height: 56px; }
.auth-rune-2 { bottom: 15%; right: 10%; width: 44px; height: 44px; }

.auth-epic-brand {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem;
}

.auth-epic-shield {
    width: 130px;
    height: auto;
    filter: drop-shadow(0 0 24px rgba(232,96,44,.35));
    animation: auth-float 4s ease-in-out infinite;
}

.auth-epic-title {
    font-family: var(--tbt-font-display, 'Bebas Neue', sans-serif);
    font-size: 3.2rem;
    letter-spacing: 0.1em;
    color: var(--tbt-txt-white, #f0ede8);
    line-height: 1;
    font-weight: 400;
    margin: 0;
}

.auth-epic-subtitle {
    font-family: var(--tbt-font-mono, 'JetBrains Mono', monospace);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tbt-txt-muted, #4e4e4e);
    margin: 0;
}

.auth-epic-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: var(--tbt-bg-base, #080808);
    min-height: 100vh;
}
@media (max-width: 860px) {
    .auth-epic-right { padding: 5rem 1.25rem 2rem; }
}

/* ── Card ──────────────────────────────────────────────────────────────── */
.auth-glass-card {
    width: 100%;
    max-width: 440px;
    background: var(--tbt-bg-1);
    border: 1px solid var(--tbt-bg-4);
    border-top: 2px solid var(--tbt-jade);
    border-radius: var(--tbt-r-lg);
    padding: 2.5rem 2rem;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
    box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(232,96,44,.06);
}
@media (max-width: 400px) {
    .auth-glass-card {
        padding: 2rem 1.25rem;
        clip-path: none;
        border-radius: var(--tbt-r-sm);
    }
}

/* ── Logo lockup ───────────────────────────────────────────────────────── */
.auth-glass-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}
.auth-glass-logo-icon {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: var(--tbt-jade-08, rgba(232,96,44,.08));
    border: 1px solid var(--tbt-jade-15, rgba(232,96,44,.15));
    border-radius: var(--tbt-r-sm, 3px);
    flex-shrink: 0;
}
.auth-glass-logo-title {
    font-family: var(--tbt-font-display, 'Bebas Neue', sans-serif);
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    color: var(--tbt-txt-white, #f0ede8);
    line-height: 1;
}
.auth-glass-logo-sub {
    font-family: var(--tbt-font-mono, 'JetBrains Mono', monospace);
    font-size: 0.58rem;
    color: var(--tbt-jade, #e8602c);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: block;
    margin-top: 1px;
}

/* ── Heading / subheading ──────────────────────────────────────────────── */
.auth-glass-heading {
    font-family: var(--tbt-font-display, 'Bebas Neue', sans-serif);
    font-size: 2rem;
    letter-spacing: 0.06em;
    color: var(--tbt-txt-white, #f0ede8);
    font-weight: 400;
    line-height: 1;
    margin: 0 0 0.35rem;
    text-align: center;
}
.auth-glass-subheading {
    font-family: var(--tbt-font-body, 'Barlow Condensed', sans-serif);
    font-size: 0.9rem;
    color: var(--tbt-txt-muted, #4e4e4e);
    margin: 0 0 1.5rem;
    text-align: center;
    line-height: 1.5;
}
/* Login/register use a left-aligned heading block (there's a logo lockup above it) */
.auth-glass-form ~ .auth-glass-heading,
.auth-glass-logo + .auth-glass-heading,
.auth-glass-logo + .auth-glass-heading + .auth-glass-subheading { text-align: left; }

/* ── Alerts ────────────────────────────────────────────────────────────── */
.auth-glass-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    border-radius: var(--tbt-r-sm, 3px);
    font-family: var(--tbt-font-body, 'Barlow Condensed', sans-serif);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    border-left: 3px solid transparent;
}
.auth-glass-alert svg { flex-shrink: 0; }
.auth-glass-alert--error {
    background: rgba(220,53,69,.08);
    border-color: #dc3545;
    color: #f87171;
}
.auth-glass-alert--success {
    background: rgba(37,211,102,.08);
    border-color: #25d366;
    color: #4ade80;
}

/* ── Info box (e.g. "we'll email you a code") ─────────────────────────── */
.auth-glass-info {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(232,96,44,.12);
    border-radius: var(--tbt-r-sm, 6px);
    padding: 0.75rem 1rem;
    margin: 0.25rem 0 1.1rem;
    font-family: var(--tbt-font-body, 'Barlow Condensed', sans-serif);
    font-size: 0.82rem;
    color: var(--tbt-txt-sub, #707070);
    line-height: 1.5;
}
.auth-glass-info strong { color: var(--tbt-txt-white, #f0ede8); }

/* ── Form / field / label ──────────────────────────────────────────────── */
.auth-glass-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.auth-glass-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.auth-glass-label {
    font-family: var(--tbt-font-mono, 'JetBrains Mono', monospace);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tbt-txt-sub, #707070);
}
.auth-glass-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.auth-glass-label-optional,
.auth-glass-label-badge {
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 6px;
    vertical-align: middle;
    display: inline-block;
}
.auth-glass-label-optional {
    color: var(--tbt-txt-muted, #4e4e4e);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
}
.auth-glass-label-badge {
    color: var(--tbt-jade-light, #ff7a45);
    background: rgba(232,96,44,.1);
    border: 1px solid rgba(232,96,44,.25);
}
.auth-glass-link-sm {
    font-family: var(--tbt-font-mono, 'JetBrains Mono', monospace);
    font-size: 0.62rem;
    color: var(--tbt-jade, #e8602c);
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: opacity 0.15s;
}
.auth-glass-link-sm:hover { opacity: 0.75; }

/* ── Inputs ────────────────────────────────────────────────────────────── */
.auth-glass-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-glass-input-icon {
    position: absolute;
    left: 0.85rem;
    color: var(--tbt-txt-muted, #4e4e4e);
    pointer-events: none;
    flex-shrink: 0;
    transition: color 0.2s;
}
.auth-glass-input {
    width: 100%;
    background: var(--tbt-bg-2, #141414);
    border: 1px solid var(--tbt-bg-4, #252525);
    border-radius: var(--tbt-r-sm, 3px);
    color: var(--tbt-txt-white, #f0ede8);
    font-family: var(--tbt-font-body, 'Barlow Condensed', sans-serif);
    font-size: 1rem;
    font-weight: 400;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-glass-input--bare { padding-left: 1rem; }
.auth-glass-input::placeholder { color: var(--tbt-txt-dim, #2e2e2e); font-style: italic; }
.auth-glass-input:focus {
    border-color: var(--tbt-jade);
    box-shadow: 0 0 0 3px rgba(232,96,44,.08), 0 0 0 1px rgba(232,96,44,.2);
    background: var(--tbt-bg-1);
}
.auth-glass-input:focus + .auth-glass-input-icon,
.auth-glass-input-wrap:focus-within .auth-glass-input-icon {
    color: var(--tbt-jade, #e8602c);
}
.auth-glass-input--ok  { border-color: rgba(37,211,102,.4)  !important; }
.auth-glass-input--err { border-color: rgba(239,68,68,.4)   !important; }

.auth-glass-toggle-pass {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: var(--tbt-txt-muted, #4e4e4e);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}
.auth-glass-toggle-pass:hover { color: var(--tbt-txt-white, #f0ede8); }

/* ── Hints ─────────────────────────────────────────────────────────────── */
.auth-glass-hint {
    display: block;
    font-size: 0.75rem;
    font-family: var(--tbt-font-mono, 'JetBrains Mono', monospace);
    color: var(--tbt-txt-muted, #4e4e4e);
    margin-top: 0.2rem;
    line-height: 1.5;
}
.auth-glass-hint--ok  { color: #4ade80; }
.auth-glass-hint--err { color: #f87171; }

/* ── Password strength meter ───────────────────────────────────────────── */
.auth-glass-strength-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
}
.auth-glass-strength-bar {
    flex: 1;
    height: 3px;
    background: var(--tbt-bg-3, #1c1c1c);
    border-radius: 2px;
    overflow: hidden;
}
.auth-glass-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}
.auth-glass-strength-label {
    font-size: 0.62rem;
    font-family: var(--tbt-font-mono, 'JetBrains Mono', monospace);
    color: var(--tbt-txt-muted, #4e4e4e);
    min-width: 50px;
    text-align: right;
}

/* ── Checkbox ──────────────────────────────────────────────────────────── */
.auth-glass-check-row { margin-top: -0.25rem; }
.auth-glass-check-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-family: var(--tbt-font-body, 'Barlow Condensed', sans-serif);
    font-size: 0.875rem;
    color: var(--tbt-txt-muted, #4e4e4e);
    user-select: none;
}
.auth-glass-check { display: none; }
.auth-glass-check-custom {
    width: 16px; height: 16px;
    flex-shrink: 0;
    background: var(--tbt-bg-2, #141414);
    border: 1px solid var(--tbt-bg-5, #333333);
    border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.auth-glass-check:checked + .auth-glass-check-custom {
    background: var(--tbt-jade, #e8602c);
    border-color: var(--tbt-jade, #e8602c);
}
.auth-glass-check:checked + .auth-glass-check-custom::after {
    content: '\2713';
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/* ── Submit button ─────────────────────────────────────────────────────── */
.auth-glass-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: var(--tbt-jade, #e8602c);
    color: #fff;
    border: none;
    border-radius: var(--tbt-r-sm, 3px);
    font-family: var(--tbt-font-display, 'Bebas Neue', sans-serif);
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    margin-top: 0.25rem;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.auth-glass-submit:hover {
    background: var(--tbt-jade-light, #ff7a45);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(232,96,44,.45);
}
.auth-glass-submit:active { transform: translateY(0); }
.auth-glass-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.auth-glass-submit--amber {
    background: linear-gradient(135deg,#f5a623 0%,#e08800 50%,#f5a623 100%);
    background-size: 200% 100%;
    color: var(--tbt-bg-base);
}
.auth-glass-submit--amber:hover {
    box-shadow: 0 8px 32px rgba(245,166,35,.4), 0 0 0 1px rgba(245,166,35,.3);
}
.auth-glass-submit--green {
    background: linear-gradient(135deg,#4ade80 0%,#16a34a 50%,#4ade80 100%);
    color: var(--tbt-bg-base);
}

/* ── Footer / links / divider ──────────────────────────────────────────── */
.auth-glass-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-family: var(--tbt-font-body, 'Barlow Condensed', sans-serif);
    font-size: 0.9rem;
    color: var(--tbt-txt-muted, #4e4e4e);
}
.auth-glass-link {
    color: var(--tbt-jade, #e8602c);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s, opacity 0.15s;
}
.auth-glass-link:hover { color: var(--tbt-jade-light, #ff7a45); opacity: 0.9; }
.auth-glass-link-btn {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: var(--tbt-jade, #e8602c);
    font-weight: 600;
}
.auth-glass-link-btn:hover { color: var(--tbt-jade-light, #ff7a45); }

.auth-glass-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--tbt-font-mono, 'JetBrains Mono', monospace);
    font-size: 0.65rem;
    color: var(--tbt-txt-dim, #2e2e2e);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0.25rem 0;
}
.auth-glass-divider::before,
.auth-glass-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--tbt-bg-3, #1c1c1c);
}

/* ── Secondary text row under the main action (resend, etc.) ──────────── */
.auth-secondary-row {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(232,96,44,.08);
    text-align: center;
}
.auth-secondary-row p {
    font-size: 0.8rem;
    color: var(--tbt-txt-muted, #4e4e4e);
    margin: 0 0 0.5rem;
}
.auth-btn-outline {
    background: none;
    border: 1px solid rgba(232,96,44,.2);
    color: var(--tbt-jade-light, #ff7a45);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--tbt-font-body, 'Barlow Condensed', sans-serif);
}
.auth-btn-outline:hover { border-color: rgba(232,96,44,.4); }
.auth-btn-outline:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── OTP digit group (email/phone/2FA code entry) ─────────────────────── */
.vt-digits-wrap { margin: 1.25rem 0; }
.vt-digits { display: flex; gap: 0.5rem; justify-content: center; }
.vt-digit-epic {
    width: 50px; height: 58px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--tbt-font-mono);
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(232,96,44,.15);
    border-radius: 12px;
    color: var(--tbt-txt-white);
    outline: none;
    caret-color: var(--tbt-jade);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.vt-digit-epic:focus {
    border-color: rgba(232,96,44,.5);
    box-shadow: 0 0 0 3px rgba(232,96,44,.1), 0 0 20px rgba(232,96,44,.08);
    background: rgba(232,96,44,.04);
}
.vt-digit-epic.filled { border-color: rgba(232,96,44,.4); background: rgba(232,96,44,.06); }
.vt-digit-epic.error { border-color: rgba(239,68,68,.5); animation: auth-shake 0.3s ease; }
@media (max-width: 480px) {
    .vt-digit-epic { width: 42px; height: 50px; font-size: 1.2rem; }
}

/* Amber variant used by the 2FA screen */
.vt-digit-amber:focus {
    border-color: rgba(245,166,35,.5) !important;
    box-shadow: 0 0 0 3px rgba(245,166,35,.1) !important;
    background: rgba(245,166,35,.04) !important;
}
.vt-digit-amber.filled { border-color: rgba(245,166,35,.4) !important; background: rgba(245,166,35,.06) !important; }

.vt-timer-epic {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--tbt-txt-muted, #4e4e4e);
    text-align: center;
    margin: 0.75rem 0 1rem;
    font-family: var(--tbt-font-mono, 'JetBrains Mono', monospace);
}
.vt-timer-epic.expired { color: #f87171; }

/* ── Step indicator (registration / password-recovery progress) ───────── */
.auth-steps { display: flex; align-items: center; gap: 0; margin-bottom: 1.5rem; }
.auth-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
}
.auth-step__num {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--tbt-txt-muted);
    transition: all 0.3s;
    background: rgba(255,255,255,.05);
}
.auth-step__label {
    font-size: 0.62rem;
    color: var(--tbt-txt-dim, #2e2e2e);
    text-align: center;
    font-family: var(--tbt-font-mono, 'JetBrains Mono', monospace);
    letter-spacing: 0.05em;
}
.auth-step--active .auth-step__num {
    border-color: var(--tbt-jade);
    color: var(--tbt-jade-light);
    box-shadow: 0 0 10px rgba(232,96,44,.3);
}
.auth-step--active .auth-step__label { color: var(--tbt-jade-light); }
.auth-step--done .auth-step__num {
    border-color: rgba(34,197,94,.4);
    background: rgba(34,197,94,.15);
    color: #4ade80;
}
.auth-step-line { flex: 1; height: 2px; background: rgba(255,255,255,.08); margin: 0 0.5rem; margin-bottom: 1rem; }

.auth-simple-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(2rem, 6vw, 4rem) 1.25rem 3rem;
    min-height: 60vh;
}
.auth-simple-card {
    width: 100%;
    max-width: 440px;
    background: var(--tbt-bg-1);
    border: 1px solid var(--tbt-bg-4);
    border-top: 2px solid var(--tbt-jade);
    border-radius: var(--tbt-r-lg, 10px);
    padding: 2.25rem 2rem 2rem;
    text-align: center;
}
@media (max-width: 400px) {
    .auth-simple-card { padding: 1.75rem 1.25rem; border-radius: var(--tbt-r-sm); }
}

.auth-simple-icon-wrap {
    position: relative;
    width: 76px; height: 76px;
    margin: 0 auto 1.25rem;
    display: flex; align-items: center; justify-content: center;
}
.auth-simple-icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(232,96,44,.2);
    animation: auth-ring-pulse 3s ease-out infinite;
}
.auth-simple-icon-ring:nth-child(2) { inset: -10px; animation-delay: .8s; }
.auth-simple-icon-ring:nth-child(3) { inset: -20px; animation-delay: 1.6s; }
.auth-simple-icon-core {
    position: relative;
    z-index: 2;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(232,96,44,.1);
    border: 2px solid rgba(232,96,44,.3);
    display: flex; align-items: center; justify-content: center;
    color: var(--tbt-jade-light, #ff7a45);
    box-shadow: 0 0 30px rgba(232,96,44,.2);
}
.auth-simple-icon-core--success {
    background: rgba(34,197,94,.1);
    border-color: rgba(34,197,94,.35);
    color: #4ade80;
    box-shadow: 0 0 24px rgba(34,197,94,.15);
}
.auth-simple-icon-core--amber {
    background: rgba(245,166,35,.1);
    border-color: rgba(245,166,35,.35);
    color: #f5a623;
    box-shadow: 0 0 24px rgba(245,166,35,.2);
}

.auth-simple-title {
    font-family: var(--tbt-font-display, 'Bebas Neue', sans-serif);
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    color: var(--tbt-txt-white, #f0ede8);
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 0.5rem;
}
.auth-simple-text {
    font-family: var(--tbt-font-body, 'Barlow Condensed', sans-serif);
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--tbt-txt-sub, #707070);
    margin: 0 0 1.5rem;
}
.auth-simple-text strong { color: var(--tbt-txt-white, #f0ede8); }
.auth-simple-card .auth-glass-form,
.auth-simple-card .auth-glass-alert,
.auth-simple-card .auth-glass-info,
.auth-simple-card .auth-steps { text-align: left; }

/* ── Shared animations ─────────────────────────────────────────────────── */
@keyframes auth-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
@keyframes auth-ring-pulse {
    0%   { opacity: 0; transform: scale(.8); }
    50%  { opacity: 1; }
    100% { opacity: 0; transform: scale(1.2); }
}
@keyframes auth-shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-4px); }
    75%      { transform: translateX(4px); }
}
@keyframes auth-glow {
    0%   { filter: drop-shadow(0 0 15px currentColor); }
    100% { filter: drop-shadow(0 0 32px currentColor); }
}

/* ── Responsive safety net (320px → 1440px, no horizontal scroll) ─────── */
html, body { overflow-x: hidden; }
.auth-glass-card, .auth-simple-card { max-width: min(100%, 440px); }

/* ── Google Identity Services — botón + separador (fase 4) ────────────────
   El botón en sí lo pinta la librería de Google (google.accounts.id.
   renderButton) dentro de #google-signin-button — acá solo controlamos el
   layout alrededor para que no se sienta pegado. */
.auth-glass-google-wrap {
    margin-bottom: 1.25rem;
}
#google-signin-button {
    display: flex;
    justify-content: center;
    min-height: 44px;
}
/* Mientras carga el script de Google (o si falla / está bloqueado por un
   adblocker), no dejar un hueco en blanco silencioso. */
#google-signin-button:empty::before {
    content: 'Cargando acceso con Google…';
    font-family: var(--tbt-font-mono, 'JetBrains Mono', monospace);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--tbt-txt-dim, #2e2e2e);
    padding: 0.85rem 0;
}
.auth-glass-google-error {
    display: none;
    margin-top: 0.6rem;
}
.auth-glass-google-error.is-visible { display: flex; }

.auth-glass-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0 0 1.25rem;
}
.auth-glass-divider::before,
.auth-glass-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--tbt-bg-4, #252525);
}
.auth-glass-divider span {
    font-family: var(--tbt-font-mono, 'JetBrains Mono', monospace);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tbt-txt-muted, #4e4e4e);
    white-space: nowrap;
}

/* ── Modal genérico de auth (confirmar password al vincular Google) ─────── */
.auth-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(3px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.auth-modal-overlay.is-open { display: flex; }
.auth-modal {
    width: 100%;
    max-width: 380px;
    background: var(--tbt-bg-1, #0d0d0d);
    border: 1px solid var(--tbt-bg-4, #252525);
    border-top: 2px solid var(--tbt-jade);
    border-radius: var(--tbt-r-lg, 10px);
    box-shadow: var(--tbt-shadow-xl, 0 24px 60px rgba(0,0,0,.7));
    padding: 1.75rem;
    animation: auth-modal-in 0.18s ease-out;
}
@keyframes auth-modal-in {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-modal-title {
    font-family: var(--tbt-font-display, 'Bebas Neue', sans-serif);
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    color: var(--tbt-txt-white, #f0ede8);
    margin: 0 0 0.4rem;
}
.auth-modal-subtitle {
    font-family: var(--tbt-font-body, 'Barlow Condensed', sans-serif);
    font-size: 0.88rem;
    color: var(--tbt-txt-muted, #4e4e4e);
    margin: 0 0 1.25rem;
    line-height: 1.5;
}
.auth-modal-subtitle strong { color: var(--tbt-txt-light, #c8c8c8); }
.auth-modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.auth-modal-cancel {
    flex: 1;
    background: transparent;
    border: 1px solid var(--tbt-bg-5, #333333);
    border-radius: var(--tbt-r-sm, 3px);
    color: var(--tbt-txt-sub, #707070);
    font-family: var(--tbt-font-body, 'Barlow Condensed', sans-serif);
    font-size: 0.9rem;
    padding: 0.7rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.auth-modal-cancel:hover { border-color: var(--tbt-txt-sub); color: var(--tbt-txt-light); }
.auth-modal-actions .auth-glass-submit { flex: 1.4; }
