/* btw.bio: login / register / reset and the e-mail result pages. Flat like the dashboard: one card, no glow. */
.auth-body {
  --bg: #0a0a0a;
  --bg-2: #0e0e0e;
  --panel: #131313;
  --panel-2: #191919;
  --panel-3: #212121;
  --border: rgba(255, 255, 255, 0.075);
  --border-2: rgba(255, 255, 255, 0.115);
  --border-3: rgba(255, 255, 255, 0.19);
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --faint: #757575;
  --input-bg: #0e0e0e;
  --input-bg-focus: #0e0e0e;
  --btn-red: #a3000f;
  --btn-red-hover: #8c0011;
  --btn-red-border: #b80012;
  background: var(--bg);
  overflow-x: hidden;
}
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 20px 14px; border-bottom: 1px solid var(--border); }
.auth-top .brand-logo { height: 22px; filter: none; }
.auth-lang { position: relative; z-index: 5; }
.auth { display: grid; justify-items: center; padding: clamp(28px, 8vh, 88px) 16px 48px; }
.auth-card { width: min(400px, 100%); padding: 24px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); display: grid; gap: 20px; }
.auth-head { display: grid; gap: 6px; }
.auth-head h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.auth-head p { font-size: 14px; }
.auth-foot { font-size: 13.5px; padding-top: 16px; border-top: 1px solid var(--border); }
.auth-foot a { color: var(--text); font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.turnstile-box { min-height: 65px; display: grid; }
.code-input { text-align: center; font-size: 20px; font-weight: 600; letter-spacing: 0.3em; height: 50px; font-family: var(--mono); }
.twofa-head { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); }
.twofa-head p { font-size: 13.5px; }

.recovery { display: grid; gap: 14px; }
.recovery h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.recovery p { font-size: 14px; }
.recovery-key { display: flex; gap: 8px; align-items: center; padding: 8px; padding-inline-start: 14px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--bg-2); }
.recovery-key code { flex: 1; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; word-break: break-all; text-align: left; color: var(--text); user-select: all; }
.recovery .check { width: 100%; }
.recovery > .btn-sm { justify-self: start; }

/* Login and sign-up on wide screens: the form beside real profile cards (their embed images) sliding up and down. */
.auth-split { grid-template-columns: minmax(0, 400px) minmax(0, 560px); justify-content: center; align-items: start; gap: clamp(32px, 6vw, 88px); }
.auth-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: min(700px, calc(100vh - 150px)); height: min(700px, calc(100dvh - 150px)); overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.auth-wall-col { display: flex; flex-direction: column; animation: auth-wall 70s linear infinite; }
.auth-wall-col.down { animation-direction: reverse; }
.auth-wall-set { display: flex; flex-direction: column; gap: 12px; padding-bottom: 12px; }
.auth-wall img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); }
@keyframes auth-wall { to { transform: translateY(-50%); } }
@media (max-width: 980px) { .auth-split { grid-template-columns: minmax(0, 400px); } .auth-wall { display: none; } }
@media (prefers-reduced-motion: reduce) { .auth-wall-col { animation: none; } }

/* One screen: spacing follows the window height. */
.auth { padding-top: clamp(16px, 4.5vh, 48px); padding-bottom: clamp(16px, 4vh, 40px); }
/* The site footer under the card (views/auth.ts shell). */
.auth-body .site-footer { margin-top: clamp(40px, 8vh, 96px); }
/* The top bar keeps the home page colors (the darker red above is for the card only). */
.auth-body .site-nav { --btn-red: #ff1f2e; --btn-red-hover: #e3101d; --btn-red-border: #ff1f2e; }
.auth-card { gap: clamp(14px, 2.2vh, 20px); }
.auth-card .stack { gap: clamp(10px, 1.6vh, 14px); }
/* Sign-up: "Who invited you?" is a line that opens the field. */
.invite-more > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.invite-more > summary::-webkit-details-marker { display: none; }
.invite-more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; border: 1px solid var(--border-2); font-size: 13px; line-height: 1; }
.invite-more[open] > summary::before { content: "-"; }
.invite-more > summary:hover { color: var(--text); }
.invite-more[open] > summary { margin-bottom: 8px; }
/* Short windows (laptops at 768 px): a tighter card so sign-up still fits. */
@media (max-height: 820px) and (min-width: 600px) {
  .auth-top { padding-block: 10px; }
  .auth { padding-top: 14px; padding-bottom: 14px; }
  .auth-card { padding: 18px 22px; gap: 12px; }
  .auth-card .stack { gap: 9px; }
  .auth-head h1 { font-size: 20px; }
  .auth-card .hint { margin-top: 3px; }
}
/* One full screen under the top bar: the card (and the profile wall) centered in it, the footer below the fold. */
.auth-body main.auth { min-height: calc(100svh - 72px); box-sizing: border-box; align-content: center; }
.auth-body .site-footer { margin-top: 0; }
/* Sign-up: "Did you mean ...?" under the e-mail field (one tap puts the suggestion in). */
.email-suggest { display: block; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--accent-text, #ff6b75); font: inherit; font-size: 13px; font-weight: 600; text-align: start; cursor: pointer; }
.email-suggest:hover { text-decoration: underline; }
/* Sign-up: the address in "Is your e-mail address correct?". */
.email-confirm { margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel-2); font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.turnstile-notice { align-items: center; justify-content: space-between; margin-top: 8px; }
.turnstile-notice[hidden] { display: none; }
.turnstile-notice .btn { flex: none; }

/* The application forms (/apply/beta, /apply/staff; views/apply.ts): the same card, wider for the long answers. */
.apply-body .auth-card { width: min(560px, 100%); }
.apply-form .textarea { min-height: 120px; }
.apply-count:empty { display: none; }
