/* Sign-in pages (auth_layout.templ), the account pages and the account menu
   of the shell. Tokens and components come from app.css. */

/* A public page has the frame of the first-use Dashboard (AuthLayout; the
   frame and the Dashboard picture are in dashboard.css). Its card has the
   look of a first-use step card. */
.auth-body { display: flex; min-height: 100dvh; }
.auth-body > .dash-page { min-height: 100dvh; }
.auth-card { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 420px; }
.card.auth-card { padding: 24px; border-radius: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--raised) 70%, var(--card)), var(--card)); }
.auth-card h1 { margin: 0; font-size: 20px; }
.auth-card > p { margin: 0; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.auth-small { font-size: 12px; }
.auth-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.auth-check { display: flex; align-items: flex-start; gap: 8px; color: var(--text-secondary); font-size: 12px; line-height: 1.5; cursor: pointer; }
.auth-check input { margin-top: 1px; }
.auth-sep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; border-top: 1px solid var(--input-border); }
.auth-alt { display: flex; flex-direction: column; gap: 8px; }
.auth-note { color: var(--muted); font-size: 12px; text-align: center; }
.auth-text { color: var(--text-secondary); }
.auth-turnstile { min-height: 65px; }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; color: var(--muted); font-size: 11px; }
.auth-foot a { color: var(--muted); }
.auth-foot a:hover { color: var(--text-secondary); }
.invalid > input { border-color: var(--danger); }

.banner.ok { background: color-mix(in srgb, var(--ok) 8%, transparent); border-color: color-mix(in srgb, var(--ok) 22%, transparent); color: var(--ok); }

.account-page { max-width: 820px; }
.account-form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.account-value { margin: 0 0 14px; color: var(--fg); }
.account-reauth { max-width: 460px; }
.account-reauth .card-body { display: flex; flex-direction: column; gap: 16px; }
.account-reauth-alt { max-width: 420px; }
.account-sessions td { white-space: nowrap; }

.account-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; flex: none; width: 100%; padding: 10px 4px 0; border-top: 1px solid var(--hairline); font-size: 12px; }
body.sb-icons:not(.sb-peek) .app-sidebar .account-menu { display: none; }
.account-menu a { color: var(--text-secondary); }
.account-menu a:hover { color: var(--fg); }
.account-menu .account-menu-user { flex-basis: 100%; overflow: hidden; color: var(--fg); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-out { display: inline; margin: 0; }
.account-menu-out .btn-link { padding: 0; border: 0; background: none; color: var(--text-secondary); font: 400 12px/1.45 var(--font-sans); cursor: pointer; }
.account-menu-out .btn-link:hover { color: var(--fg); }

/* The foot of a sign-in card: Secured by + the Privy wordmark. */
.auth-secured { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px -24px -24px; padding: 14px 24px; border-top: 1px solid var(--hairline); border-radius: 0 0 16px 16px; background: color-mix(in srgb, var(--card) 60%, transparent); color: var(--muted); font-size: 12px; }
.auth-secured img { display: block; width: auto; height: 15px; opacity: .92; }
