/* Page-specific account forms and authentication panel styling. */
.auth-shell { width: min(100% - 32px, 430px); min-height: 100vh; margin: 0 auto; padding: 22px 0; }
.auth-shell > .brand { display: inline-block; margin-bottom: 28px; font-family: "IBM Plex Mono", monospace; }
.auth-card { padding: clamp(20px, 4vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); animation: rise-in 500ms ease-out both; }
.eyebrow { margin: 0 0 14px; color: var(--accent-dark); font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.auth-card h1 { margin-bottom: 10px; font-size: clamp(2.2rem, 8vw, 3.4rem); }
.auth-intro, .session-status { color: var(--muted); line-height: 1.45; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 22px 0; padding: 4px; border-radius: var(--radius-sm); background: var(--paper); }
.auth-tab, .text-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; }
.auth-tab { padding: 10px 8px; border-radius: var(--radius-sm); font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; }
.auth-tab.is-active { background: var(--panel); color: var(--ink); font-weight: 600; }
.auth-form { display: grid; gap: 8px; }
.auth-form.is-hidden { display: none; }
.auth-form label { margin-top: 7px; font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; font-weight: 600; }
.auth-form input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: white; color: var(--ink); font: inherit; }
.auth-form input:focus-visible { outline: 3px solid rgba(8, 127, 140, 0.2); border-color: var(--accent); }
.form-button { width: 100%; margin-top: 14px; text-align: center; }
.password-field { position: relative; }
.password-field input { padding-right: 46px; }
.password-toggle { position: absolute; top: 50%; right: 4px; display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transform: translateY(-50%); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.password-toggle svg { width: 18px; height: 18px; pointer-events: none; }
.password-toggle:hover { background: var(--paper); color: var(--accent-dark); }
.password-toggle[aria-pressed="true"] { background: var(--accent); color: white; }
.password-toggle:focus-visible { outline: 3px solid rgba(8, 127, 140, 0.2); }
.field-hint { margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
.text-button { justify-self: center; padding: 7px; color: var(--accent-dark); font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; text-decoration: underline; }

@media (max-width: 700px) {
  .auth-shell { width: min(100% - 24px, 430px); padding-top: 16px; }
  .auth-card { padding: 20px 16px; }
}