/* Sign-in screens (NEO-AUTH-001…003) — shared split layout (prefix auth-) and page bits (a001-, a002-, a003-).
   From prototipus/css/auth.css; keep class names in sync.
   Layout from tervek/NEO-AUTH-001.md §3: dark brand panel on the left (640px at 1536), paper form area on the right. */

.auth-layout { display: grid; grid-template-columns: 640px minmax(0, 1fr); min-height: 100vh; }

/* ---------- Brand panel ---------- */
.auth-brand {
  position: sticky; top: 0; height: 100vh; min-height: 640px;
  display: flex; flex-direction: column; padding: 40px 48px 36px;
  background: var(--grain-light), linear-gradient(180deg, var(--forest-900-top) 0%, var(--forest-900) 45%, #112017 100%);
  color: var(--nav-text); overflow: hidden;
}
.auth-brand .shell-logo { margin: 0; }
.auth-spiral { position: relative; flex: 1; display: grid; place-items: center; min-height: 0; }
.auth-spiral-art { position: relative; width: min(440px, 100%); aspect-ratio: 440 / 423; }
.auth-spiral-art img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
}
.auth-lens { position: absolute; font-family: var(--font-serif); font-style: italic; font-size: 22px; color: #d9dcd3; }
.auth-lens--soul { left: 75%; top: 3%; }
.auth-lens--body { left: -4%; top: 44%; }
.auth-lens--mind { left: 79%; top: 82%; }
.auth-brand-tagline { font-family: var(--font-serif); font-size: 30px; line-height: 38px; color: #eeece2; margin: 0 0 0 16px; }
.auth-brand-tagline span { display: block; }
.auth-brand-foot {
  margin: 26px 0 0 16px; display: flex; align-items: center; gap: 22px;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: #c8cfc7;
}
.auth-brand-foot::before { content: ""; width: 31px; height: 1px; background: rgba(233, 236, 228, .45); }

/* ---------- Form area ---------- */
.auth-main {
  container: authmain / inline-size;
  display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; padding: 36px 48px 26px;
}
.auth-top { display: flex; justify-content: flex-end; }
.auth-top a { font-size: 15px; color: var(--ink-soft); text-underline-offset: 4px; }
.auth-panel { place-self: center; width: min(420px, 100%); padding: 32px 0; }
.auth-panel .eyebrow { color: var(--muted); font-size: 13px; }
.auth-title { margin-top: 12px; font-family: var(--font-serif); font-weight: 400; font-size: 48px; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.auth-sub { margin-top: 10px; font-size: 18px; line-height: 1.45; color: var(--ink-soft); }
.auth-notice { margin-top: 28px; }
.auth-form { margin-top: 30px; }
.auth-notice + .auth-form { margin-top: 12px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.auth-link { font-size: 15px; color: var(--sage-deep); font-weight: 600; text-underline-offset: 4px; }
.auth-form .btn--block { margin-top: 28px; }
.auth-alt { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--divider); text-align: center; font-size: 15.5px; color: var(--ink-soft); }
.auth-alt a { color: var(--sage-deep); font-weight: 600; text-underline-offset: 4px; }
.auth-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; font-size: 15px; color: var(--ink-soft); text-decoration: none; }
.auth-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth-back .icon { width: 18px; height: 18px; }

.auth-foot { display: grid; justify-items: center; gap: 10px; }
.auth-crisis {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 4px 8px; border-radius: 8px;
  font-size: 13.5px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px;
}
.auth-crisis .icon { width: 16px; height: 16px; }
.auth-legal { display: flex; gap: 10px; font-size: 13px; color: var(--muted); }
.auth-legal a { color: inherit; }

/* Demo-account helper box: rendered only when APP_ENV=development. */
.auth-dev {
  margin-top: 22px; padding: 12px 14px; border: 1px dashed #bdb6a6; border-radius: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted);
}
.auth-dev button { flex: none; border: 1px solid #bdb6a6; background: transparent; border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--ink-soft); }

/* ---------- NEO-AUTH-002 sent state ---------- */
.a002-sent { margin-top: 30px; }
.a002-sent-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #dfe5da; color: var(--sage-deep); }
.a002-sent-icon .icon { width: 30px; height: 30px; }
.a002-sent h1, .a002-sent h2 { margin-top: 20px; font-family: var(--font-serif); font-weight: 400; font-size: 32px; color: var(--ink); }
.a002-sent p { margin-top: 10px; font-size: 16.5px; line-height: 1.5; color: var(--ink-soft); }
.a002-sent .a002-tip { font-size: 15px; color: var(--muted); }
.a002-again { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
.a002-again button { border: 0; background: transparent; padding: 0; font-size: 15px; font-weight: 600; color: var(--sage-deep); text-decoration: underline; text-underline-offset: 4px; }
.a002-again button:disabled { color: var(--muted); text-decoration: none; cursor: default; font-weight: 400; }

/* ---------- NEO-AUTH-003 rules + expired state ---------- */
.a003-rules { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; font-size: 14.5px; color: var(--ink-soft); }
.a003-rules li { display: flex; align-items: center; gap: 10px; }
.a003-rules .dot {
  width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.5px solid #b7b2a5; display: grid; place-items: center; color: #fff;
}
.a003-rules .dot .icon { width: 12px; height: 12px; stroke-width: 2.6; opacity: 0; }
.a003-rules li.is-met { color: var(--ink); }
.a003-rules li.is-met .dot { background: var(--sage-deep); border-color: var(--sage-deep); }
.a003-rules li.is-met .dot .icon { opacity: 1; }
.a003-expired .a002-sent-icon { background: #ece6da; color: #8a6a4b; }
.a003-expired .btn { margin-top: 26px; }

/* ---------- NEO-AUTH-004 Create an account + Check your inbox ---------- */
.a004-fold { margin: 14px 0 0; }
.a004-fold__btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.a004-fold__btn:hover, .a004-fold__btn:focus-visible { color: var(--copper-700, #784f33); }
.a004-checks { margin-top: 24px; display: grid; gap: 14px; }
.a004-check { margin-top: 0; }
.a004-check .check__box { position: relative; }
.a004-check .check__box::before { content: ""; position: absolute; inset: -9px -12px; }  /* the Fable review A7: a fingertip-wide tap area around the box (44 × 38; the two rows sit 38 px apart) — the sentence and its two links stay as they are */
.check--top { align-items: flex-start; line-height: 1.4; }
.check--top .check__box { margin-top: 1px; }
.check a { color: var(--sage-deep); font-weight: 600; text-underline-offset: 3px; }
.a004-under { margin-top: 12px; }
.a004-under:focus { outline: none; }
.a004-under strong { white-space: nowrap; }
.a004-inbox { margin-top: 0; }
.a004-inbox .auth-title--sm { margin-top: 20px; font-size: 40px; }
.a004-tip { margin-top: 22px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.a004-sent-icon--warm { background: #e6ddcd; color: #8a6a4b; }
.a004-cta { margin-top: 26px; }
.auth-notice + .a004-inbox { margin-top: 12px; }
.a004-inline-form { display: inline; }
.a004-link-btn { border: 0; background: transparent; padding: 0; font: inherit; font-weight: 600; color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }


/* ---------- Registration stepper (Account · Confirm email · Welcome) + the inbox card (round 5, 2026-10-03) ---------- */
.auth-steps { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.auth-steps li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.auth-steps li:not(:last-child) { flex: 1; }
.auth-steps__n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #b7b2a5; display: grid; place-items: center; font-size: 12px; letter-spacing: 0; color: var(--ink-soft); background: #fbf9f4; }
.auth-steps li.is-done .auth-steps__n { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.auth-steps li.is-done .auth-steps__n .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.auth-steps li.is-current { color: var(--ink); font-weight: 600; }
.auth-steps li.is-current .auth-steps__n { border-color: var(--ink); color: var(--ink); }
.auth-steps li:not(:last-child)::after { content: ""; flex: 1; height: 1px; min-width: 14px; background: #d3cfc5; }  /* the line between steps (was a presentational <li> — accessibility round) */
.a004-inbox-icon { margin-bottom: 22px; }
.a004-email { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 16px; border-radius: 999px; background: #ebe7dd; border: 1px solid #dcd6c9; font-size: 16px; font-weight: 600; color: var(--ink); max-width: 100%; }
.a004-email .icon { width: 18px; height: 18px; flex: none; color: var(--sage-deep); }
.a004-email span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a004-inbox .auth-sub { margin-top: 14px; }
.a004-inbox-actions { margin-top: 26px; display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; }
.a004-inbox-actions .btn { height: 48px; padding: 0 26px; font-size: 16.5px; }
.a004-inbox-note { margin-top: 16px; }
.a004-inbox-note .notice { margin-top: 0; }
@container authmain (max-width: 520px) {
  .auth-steps { gap: 8px; font-size: 11.5px; }
  .auth-steps__label { display: none; }
  .auth-steps li.is-current .auth-steps__label { display: inline; }
  .a004-inbox-actions { flex-direction: column; align-items: stretch; }
  .a004-inbox-actions .btn { width: 100%; }
  .a004-inbox-actions .auth-link { text-align: center; }
}

/* ---------- Responsive (tervek/NEO-AUTH-001.md §3.3) ---------- */
@media (max-width: 1100px) {
  .auth-layout { grid-template-columns: 40% minmax(0, 1fr); }
  .auth-spiral-art { width: min(320px, 100%); }
  .auth-brand-tagline { font-size: 24px; line-height: 31px; }
  .auth-brand { padding: 32px 36px 30px; }
  .auth-main { padding: 30px 36px 24px; }
}
@media (max-width: 768px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .auth-brand { position: relative; height: auto; min-height: 0; padding: 20px 20px 22px; }
  .auth-brand .shell-logo span { font-size: 32px; }
  .auth-brand .shell-logo img { width: 42px; height: 42px; }
  .auth-spiral, .auth-brand-foot { display: none; }
  .auth-brand-tagline { margin: 12px 0 0 2px; font-size: 18px; line-height: 24px; }
  .auth-brand-tagline span { display: inline; }
  .auth-main { min-height: 0; padding: 16px 16px 28px; }
  .auth-panel { padding: 8px 0 28px; }
  .auth-title { font-size: 38px; }
  .auth-sub { font-size: 16.5px; }
}
.toast-region { bottom: 112px; }  /* 3rd review F12: the toast sat on the Privacy · Terms line */
