/* Premium entry screens: /auth/login, /auth/register, /try.
   Every selector is prefixed pe- (or scoped under .pe-page) so nothing leaks into Bootstrap pages. */

:root {
  --ink-900: #1B2340;
  --ink-950: #121831;
  --surface-50: #F6F7FB;
  --hairline: #E3E6EF;
  --navy: #3B4C8B;
  --navy-dark: #2d3a6b;
  --gold: #C9A55C;
  --gold-text: #8A6A2E;
  --on-ink-soft: #C9CEE0;
  --on-ink-muted: #A7AEC8;
  --input-border: #C9CEE0;
  --success: #1E7A4C;
  --danger: #c0392b;
  --pe-muted: #5b6270;
}

.pe-page { font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif; color: #343a40; }
.pe-page a { color: var(--navy); }
.pe-page a:hover { color: var(--navy-dark); }
.pe-page :focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

/* ---------- main wrapper for login/register ---------- */
.pe-main { padding: 0; margin: 0; max-width: none; width: 100%; }

/* ---------- split layout ---------- */
.pe-split { display: flex; min-height: 100vh; background: #fff; }
.pe-panel {
  flex: 0 0 600px;
  background: var(--ink-900) url(/static/images/premium/hero-bg.webp) center / cover no-repeat;
  color: #fff;
  padding: 56px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.pe-panel-body { display: flex; flex-direction: column; gap: 20px; }
.pe-panel-headline { margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 30px; line-height: 1.3; color: #fff; }
.pe-panel-sub { margin: 0; font-size: 16px; line-height: 1.6; color: var(--on-ink-soft); }
.pe-panel-foot { font-size: 13px; color: var(--on-ink-muted); }

.pe-wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.pe-wordmark svg { flex: none; }
.pe-wordmark span { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: 1.5px; color: #fff; }
.pe-page a.pe-wordmark, .pe-page a.pe-wordmark:hover { color: #fff; }

.pe-check-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 16px; color: #E8EAF2; }
.pe-check-list li { display: flex; gap: 12px; }
.pe-check-list i { flex: none; margin-top: 4px; color: var(--gold); }

.pe-formcol {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px;
  box-sizing: border-box;
}
.pe-formwrap { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.pe-formwrap.pe-formwrap-wide { max-width: 440px; }
.pe-form { width: 100%; display: flex; flex-direction: column; gap: 18px; }
.pe-form.pe-form-tight { gap: 16px; }
.pe-h1 { margin: 0 0 6px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 34px; line-height: 1.2; color: var(--navy-dark); }
.pe-field { display: flex; flex-direction: column; gap: 8px; }
.pe-label { font-size: 14px; font-weight: 600; color: var(--navy-dark); }
.pe-label .pe-optional { font-weight: 400; color: var(--pe-muted); }
.pe-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pe-label-row a { font-size: 14px; }
.pe-input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: #fff;
  color: #1f2533;
  box-sizing: border-box;
}
.pe-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(59, 76, 139, 0.3); }
.pe-input:disabled { background: var(--surface-50); color: var(--pe-muted); }
.pe-hint { font-size: 13px; color: var(--pe-muted); }
.pe-check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pe-check input { width: 18px; height: 18px; accent-color: var(--navy); flex: none; }

.pe-btn-ink, .pe-btn-gold, .pe-btn-outline {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  padding: 16px 28px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}
.pe-page a.pe-btn-ink, .pe-page a.pe-btn-ink:hover { color: #fff; }
.pe-btn-ink { background: var(--ink-900); color: #fff; }
.pe-btn-ink:hover { background: var(--ink-950); color: #fff; }
.pe-btn-gold { background: var(--gold); color: var(--navy-dark); }
.pe-btn-gold:hover { background: #b8944a; color: var(--navy-dark); }
.pe-page a.pe-btn-gold, .pe-page a.pe-btn-gold:hover { color: var(--navy-dark); }
.pe-btn-outline { background: #fff; color: var(--navy); border: 2px solid var(--navy); padding: 10px 18px; font-size: 15px; width: auto; }
.pe-btn-outline:hover { background: var(--navy); color: #fff; }
.pe-btn-ink:focus-visible, .pe-btn-gold:focus-visible, .pe-btn-outline:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

.pe-switch { margin: 0; font-size: 15px; text-align: center; color: var(--pe-muted); }
.pe-switch a { font-weight: 600; }

.pe-flash { margin: 0 0 4px; }
.pe-flash .alert { margin-bottom: 10px; }

.pe-resend { border: 1px solid var(--hairline); background: var(--surface-50); border-radius: 12px; padding: 16px; }
.pe-resend p { margin: 0 0 10px; font-size: 14px; }

/* ---------- mobile: split becomes one column ---------- */
@media (max-width: 991.98px) {
  .pe-split { flex-direction: column; min-height: 0; }
  .pe-panel { flex: none; padding: 24px 16px; gap: 16px; }
  .pe-panel-headline { font-size: 22px; }
  .pe-panel-sub, .pe-panel-foot { display: none; }
  .pe-panel-body { gap: 0; }
  /* register keeps its check list in the band (spec step 6 amendment); login has none */
  .pe-check-list { gap: 8px; font-size: 14px; margin-top: 12px; }
  .pe-check-list li { gap: 10px; }
  .pe-check-list i { margin-top: 3px; }
  .pe-formcol { padding: 28px 16px 40px; align-items: flex-start; }
  .pe-h1 { font-size: 28px; }
}

/* ---------- /try ---------- */
.pe-try { background: var(--surface-50); min-height: 100vh; margin: 0; }
.pe-try-header { background: var(--ink-900); color: #fff; }
.pe-try-header-in { max-width: 960px; margin: 0 auto; padding: 22px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; box-sizing: border-box; }
.pe-try-header .pe-wordmark span { font-size: 18px; }
.pe-try-note { font-size: 14px; color: var(--on-ink-soft); }
.pe-try-main { max-width: 960px; width: 100%; margin: 0 auto; padding: 48px 32px 64px; box-sizing: border-box; display: flex; flex-direction: column; gap: 24px; }
.pe-try-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pe-try-h1 { margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 26px; line-height: 1.25; color: var(--navy-dark); }
.pe-progress { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--pe-muted); white-space: nowrap; }
.pe-pill { width: 28px; height: 6px; border-radius: 999px; background: var(--hairline); display: inline-block; }
.pe-pill.on { background: var(--gold); }

.pe-card { background: #fff; border: 1px solid var(--hairline); border-radius: 20px; padding: 36px; box-sizing: border-box; }
.pe-card-q { display: flex; flex-direction: column; gap: 14px; }
.pe-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-text); }
.pe-qtext { margin: 0 0 6px; font-size: 18px; line-height: 1.6; font-weight: 600; color: var(--navy-dark); }
.pe-opt {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: #343a40;
  padding: 14px 18px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
}
button.pe-opt { cursor: pointer; }
button.pe-opt:hover { border-color: var(--navy); background: var(--surface-50); }
.pe-opt .pe-ltr { font-weight: 700; color: var(--navy-dark); margin-right: 8px; }
.pe-opt.correct { border: 2px solid var(--success); background: rgba(30, 122, 76, 0.06); }
.pe-opt.correct .pe-ltr { color: var(--success); }
.pe-opt.wrong { border: 2px solid var(--danger); background: rgba(192, 57, 43, 0.06); }
.pe-opt.wrong .pe-ltr { color: var(--danger); }
.pe-opt.dim { opacity: 0.6; }
.pe-opt .pe-mark { float: right; margin-top: 3px; margin-left: 10px; }

.pe-card-expl { display: flex; flex-direction: column; gap: 10px; padding: 28px 36px; }
.pe-verdict { display: flex; align-items: center; gap: 10px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 18px; }
.pe-verdict.ok { color: var(--success); }
.pe-verdict.no { color: var(--danger); }
.pe-expl { margin: 0; font-size: 15px; line-height: 1.7; white-space: pre-line; color: #343a40; }
.pe-next { display: flex; justify-content: flex-end; }
.pe-next .pe-btn-ink { width: auto; font-size: 16px; padding: 15px 28px; }

.pe-wall { text-align: center; }
.pe-score { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 56px; line-height: 1; color: var(--navy); }
.pe-wall h2 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 26px; color: var(--navy-dark); margin: 0 0 12px; }
.pe-wall p { margin: 0 0 16px; font-size: 16px; line-height: 1.6; }
.pe-wall .pe-sub { color: var(--pe-muted); font-size: 15px; margin: 10px 0 24px; }
.pe-note { text-align: left; background: var(--surface-50); border-left: 4px solid var(--navy); border-radius: 8px; padding: 14px 16px; font-size: 15px; line-height: 1.6; margin: 0 auto 24px; }
.pe-wall .pe-btn-gold { width: auto; }
.pe-wall .pe-login-link { margin-top: 16px; font-size: 15px; }

@media (max-width: 991.98px) {
  .pe-try-header-in { padding: 18px 16px; flex-wrap: wrap; gap: 6px 16px; }
  .pe-try-main { padding: 24px 16px 40px; gap: 18px; }
  .pe-try-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pe-try-h1 { font-size: 22px; }
  .pe-card { padding: 24px; border-radius: 16px; }
  .pe-card-expl { padding: 22px 24px; }
  .pe-next .pe-btn-ink { width: 100%; }
  .pe-wall .pe-btn-gold { width: 100%; }
  .pe-score { font-size: 48px; }
}

/* accessibility.css appends an external-link arrow to every http link; the wordmark is a logo, not a text link */
.pe-page a.pe-wordmark::after { display: none !important; content: none !important; }

/* The shared footer's .row overflows the viewport by 2px at phone widths (also on /pricing). Scoped here so only these screens change. */
.legal-disclaimer .row { margin-left: 0; margin-right: 0; }
