/* Auth flow styles. Loaded via $authPage flag in head.php, plus password-
   toggle utility used outside auth (profile/security, admin/user). */

/* ── Brand header above .card content ─────────────────────────────────── */
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand__logo {
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none;
}
.auth-brand__logo-img {
    max-height: 40px; width: auto; display: block;
}
.auth-brand__tagline {
    font-size: 0.82rem; line-height: 1.45;
    color: var(--t-text-muted);
    max-width: 320px;
    margin: 10px auto 0;
    font-weight: 500;
}

/* ── Page subtitle (used only on auth pages) ──────────────────────────── */
.auth-page .page-subtitle {
    color: var(--t-text-muted);
    font-size: 0.9rem;
    margin: 0 0 24px;
}

/* ── Label hint (right-aligned link inside .label) ────────────────────── */
.label__hint {
    font-weight: 400; font-size: 0.8rem; color: var(--t-primary);
}

/* ── Hint line under inputs ───────────────────────────────────────────── */
.auth-page .hint { font-size: 0.78rem; color: var(--t-text-muted); }

/* ── Auth-scoped alerts (icon + flex layout, token-driven) ────────────── */
/* Scoped under .auth-page so the global .alert in style.css is untouched. */
.auth-page .alert {
    padding: 12px 14px; border-radius: var(--t-radius-sm);
    font-size: 0.88rem; line-height: 1.45;
    display: flex; gap: 10px; align-items: flex-start;
}
.auth-page .alert i { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.auth-page .alert--error   { background: var(--t-pink-light); color: #9d1842; border: 1px solid #f5b3cf; }
.auth-page .alert--error i { color: var(--t-pink); }
.auth-page .alert--success { background: rgba(245,200,0,0.12); color: #6b5300; border: 1px solid rgba(245,200,0,0.45); }
.auth-page .alert--success i { color: var(--t-accent-dark); }
.auth-page .alert--info    { background: var(--t-primary-tint); color: var(--t-primary-dark); border: 1px solid rgba(91,63,168,0.18); }
.auth-page .alert--info i  { color: var(--t-primary); }
.auth-page .alert--warn    { background: var(--t-primary-tint); color: var(--t-primary-dark); border: 1px solid rgba(91,63,168,0.22); }
.auth-page .alert--warn i  { color: var(--t-primary); }

/* ── Yellow CTA scope (auth pages override .btn--primary to brand yellow) */
.auth-page .btn--primary {
    background: var(--t-cta-bg);
    color: var(--t-cta-fg);
    width: 100%;
    box-shadow: var(--t-cta-glow), var(--t-cta-inset);
}
.auth-page .btn--primary:hover {
    background: var(--t-accent-dark);
    box-shadow: var(--t-cta-glow-hover), var(--t-cta-inset);
}
.auth-page .btn--primary:disabled {
    opacity: 0.55; cursor: not-allowed;
    box-shadow: none;
}

/* ── Centered confirmation (verify success / error, reset success / error) */
.auth-confirm { text-align: center; padding: 8px 0; }
.auth-confirm__icon {
    width: 76px; height: 76px; margin: 0 auto 18px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 44px;
}
.auth-confirm__icon--success {
    background: rgba(245,200,0,0.15); color: var(--t-accent-dark);
    box-shadow: 0 0 0 6px rgba(245,200,0,0.06);
}
.auth-confirm__icon--error {
    background: var(--t-pink-light); color: var(--t-pink);
    box-shadow: 0 0 0 6px rgba(233,30,99,0.06);
}

/* ── Consent accordion (register page) ────────────────────────────────── */
.reg-consent {
    background: var(--t-primary-tint);
    border: 1px solid rgba(91,63,168,0.14);
    border-radius: var(--t-radius-sm);
    padding: 12px 14px;
}
.reg-consent .checkbox-wrap span { color: var(--text); font-weight: 500; }
.reg-consent__toggle {
    display: inline-flex; align-items: center; gap: 4px;
    background: none; border: 0; padding: 8px 0 0;
    font-size: 0.8rem; color: var(--t-primary); font-weight: 600;
    cursor: pointer; font-family: inherit;
}
.reg-consent__list {
    margin-top: 10px; padding-top: 10px;
    border-top: 1px dashed rgba(91,63,168,0.18);
    display: flex; flex-direction: column; gap: 6px;
}
/* [hidden] UA default is display:none, but flex above wins by specificity.
   Explicit override restores hide-on-hidden semantics. */
.reg-consent__list[hidden] { display: none; }
.reg-consent__list a {
    font-size: 0.82rem; color: var(--t-primary); font-weight: 500;
    display: inline-flex; align-items: center; gap: 6px;
}
.reg-consent__list a i { font-size: 14px; opacity: 0.7; }
