/* BIRD Bench — auth (login / signup) split layout */

.auth { min-height: 100vh; display: grid; grid-template-columns: 1.02fr 1fr; background: var(--surface); }

/* ---- Brand panel (left) ---- */
.auth-brand {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, #0B1030 0%, #141E55 60%, #1B2A6E 100%);
  color: #fff; padding: 44px 56px; display: flex; flex-direction: column;
}
.auth-brand::before {
  content: ""; position: absolute; top: -180px; right: -160px; width: 560px; height: 560px;
  background: radial-gradient(closest-side, rgba(58,91,240,.42), transparent 70%); pointer-events: none;
}
.auth-brand::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 38px 38px; mask-image: radial-gradient(120% 90% at 80% 0%, #000 0%, transparent 70%); pointer-events: none;
}
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand .logo-word { color: #fff; }

.ab-body { margin-top: auto; }
.ab-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: #8FA6FF; margin-bottom: 18px; display: flex; align-items: center; gap: 9px; }
.ab-eyebrow::before { content:""; width:18px; height:1.5px; background:#8FA6FF; display:inline-block; }
.auth-brand h2 { color: #fff; font-size: clamp(28px, 3vw, 38px); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 16px; }
.auth-brand .ab-sub { color: #B9C0E0; font-size: 16px; max-width: 380px; line-height: 1.6; }

/* glass benefit card on brand panel */
.ab-card { margin-top: 34px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); backdrop-filter: blur(6px); border-radius: 16px; padding: 22px 24px; max-width: 420px; }
.ab-card .abc-row { display: flex; align-items: center; gap: 13px; padding: 11px 0; }
.ab-card .abc-row + .abc-row { border-top: 1px solid rgba(255,255,255,.08); }
.ab-card .abc-ic { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: rgba(58,91,240,.22); color: #A9B8FF; border: 1px solid rgba(255,255,255,.10); }
.ab-card .abc-ic svg { width: 19px; height: 19px; }
.ab-card .abc-t { font-family: 'Outfit'; font-weight: 700; color: #fff; font-size: 15px; }
.ab-card .abc-d { font-size: 13px; color: #97A0C6; }

.ab-foot { margin-top: 36px; display: flex; align-items: center; gap: 14px; }
.ab-stars { color: #FFC766; font-size: 15px; letter-spacing: 2px; }
.ab-foot p { font-size: 13.5px; color: #97A0C6; }

/* ---- Form side (right) ---- */
.auth-form { display: flex; flex-direction: column; padding: 28px 40px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.auth-back:hover { color: var(--brand); }
.auth-back svg { width: 16px; height: 16px; }
.auth-switch { font-size: 14px; color: var(--muted); white-space: nowrap; }
.auth-switch a { color: var(--brand); font-weight: 700; }

.auth-card { margin: auto; width: 100%; max-width: 412px; padding: 24px 0; }
.auth-logo-m { display: none; }
.auth-card h1 { font-size: clamp(28px, 3.4vw, 34px); letter-spacing: -.025em; margin-bottom: 12px; }
.auth-card .ac-sub { color: var(--muted); font-size: 16px; margin-bottom: 30px; line-height: 1.55; }

/* signup benefit box */
.benefit-box { border: 1px solid var(--brand-tint-2); background: var(--brand-tint); border-radius: 14px; padding: 20px 22px; margin-bottom: 26px; }
.benefit-box h4 { font-family: 'Outfit'; font-weight: 700; font-size: 14px; color: var(--brand-ink); margin-bottom: 14px; }
.benefit-box .bb-row { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: var(--ink-2); padding: 5px 0; }
.benefit-box .bb-row .ck { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--brand); color: #fff; }
.benefit-box .bb-row .ck svg { width: 12px; height: 12px; }

.gh-btn[disabled] { opacity: .8; cursor: progress; }
.gh-btn .spinner { width: 18px; height: 18px; border: 2.4px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--faint); font-size: 13px; font-weight: 600; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.alt-link { text-align: center; font-size: 14.5px; color: var(--muted); }
.alt-link a { color: var(--brand); font-weight: 700; }

.auth-fine { margin-top: 26px; text-align: center; font-size: 12.5px; color: var(--faint); line-height: 1.6; max-width: 360px; margin-left: auto; margin-right: auto; }
.auth-fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

.auth-secure { display: inline-flex; align-items: center; gap: 7px; justify-content: center; width: 100%; margin-top: 18px; font-size: 12.5px; color: var(--faint); }
.auth-secure svg { width: 14px; height: 14px; color: var(--emerald); }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-logo-m { display: flex; justify-content: center; margin-bottom: 20px; }
}

/* ---- Access request status (/access/pending/) ---- */
.access-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); padding: 24px 16px 48px; }
.access-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 560px; margin: 0 auto; }
.access-card { width: 100%; max-width: 560px; margin: 40px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: 36px 36px 32px; }
.access-card h1 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -.02em; margin: 14px 0 12px; }
.access-sub { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.access-meta { margin-top: 10px; font-size: 13px; color: var(--faint); font-family: 'JetBrains Mono', monospace; }
.access-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.access-icon svg { width: 26px; height: 26px; }
.access-icon-pending { background: #FEF3C7; color: #92400E; }
.access-icon-rejected { background: #FEE2E2; color: #991B1B; }
.access-alert { margin-bottom: 18px; }
.access-note { margin: 4px 0 14px; border-left: 3px solid var(--brand); background: var(--brand-tint); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 12px 16px; font-size: 15px; color: var(--ink-2); }
.access-note-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-ink); margin-bottom: 4px; }
.access-form { margin-top: 26px; display: grid; gap: 10px; }
.access-form label { font-weight: 700; font-size: 14px; color: var(--ink); }
.access-form textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.access-hint { font-size: 12.5px; color: var(--faint); margin-bottom: 6px; }

/* ---- Email / password form under the GitHub button ---- */
.auth-email-form { display: grid; gap: 12px; }
.auth-email-form label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.auth-field { display: grid; gap: 6px; }
.auth-field-error { font-size: 13px; color: #991B1B; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); }
.auth-row a { color: var(--brand); font-weight: 600; }
.auth-row label { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--muted); }

@media (max-width: 600px) {
  .access-card { padding: 26px 20px 24px; margin-top: 24px; }
  .auth-form { padding: 20px 16px; }
  .auth-top { flex-wrap: wrap; }
}
