/*
 * public/auth.css — the sign-in screens: login, signup, forgot, reset, two-step.
 * @author Thomas G. and Sophia, SOPHIA XT LLC (sophiaxt.com)
 * @sophia-mark sx1 df5ae605af70 0e6d6fffda73 FFcg1qBonJkM75DQSSIFgmAr6FQTXqyWyWEFrUHAgW_cLpsMAVjeyFJV-YtwIqvX0ZJm7ztXPg9VR28ag9sUCA
 * Copyright (c) 2026 SOPHIA XT LLC. All rights reserved.
 *
 * A split screen. The left half is the brand on the navy plat-grid
 * (.prism/style-lock.md) and never changes colour with the theme, so its
 * whites and golds are fixed against navy, measured AA. The right half is the
 * form on the app's own tokens, so light and dark follow the rest of the app.
 * Under 900px the brand half folds into a band above the form.
 */
.main.main--plain:has(.authx) { display: block; padding: 0; margin: 0; max-width: none; width: 100%; min-height: 100vh; }

.authx {
  --ax-navy: #14235c; --ax-navy-2: #1f347f; --ax-cyan: #0C9ED9; --ax-gold: #f5b81f;
  --ax-ink: #ffffff; --ax-soft: #c9d3f2;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  width: 100%; max-width: none; margin: 0; min-height: 100vh; background: var(--fx-color-bg);
}

/* ---------------------------------------------------------------- brand -- */
.authx__side {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: clamp(28px, 5vw, 64px);
  background: radial-gradient(120% 90% at 0% 0%, var(--ax-navy-2) 0%, var(--ax-navy) 60%);
  color: var(--ax-ink);
}
.authx__grid {
  position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image:
    linear-gradient(var(--ax-navy-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--ax-navy-2) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(160deg, #000 20%, transparent 85%);
}
.authx__logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ax-ink); text-decoration: none; width: max-content; }
.authx__logo:focus-visible { outline: 2px solid var(--ax-cyan); outline-offset: 4px; }
.authx__word { font-family: var(--fx-font-display); font-weight: 700; font-size: 1.75rem; letter-spacing: -0.01em; }
.authx__word i { color: var(--ax-cyan); font-style: normal; }

.authx__pitch { max-width: 30rem; }
.authx__kicker {
  font-family: var(--fx-font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ax-soft); margin: 0 0 16px; display: flex; align-items: center; gap: 10px;
}
.authx__kicker::before { content: ""; width: 22px; height: 3px; background: var(--ax-gold); }
.authx__head {
  font-family: var(--fx-font-display); font-weight: 700; line-height: 1.08;
  font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -0.02em; margin: 0 0 28px; color: var(--ax-ink);
}
.authx__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.authx__facts li {
  display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; align-items: baseline;
  padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14);
  color: var(--ax-soft); font-size: 1rem; line-height: 1.45;
}
.authx__facts b { color: var(--ax-ink); font-family: var(--fx-font-ui); font-size: .9rem; letter-spacing: .02em; }

/* A small desk: two windows and a dock, the product in silhouette. */
.authx__desk { position: relative; height: 150px; max-width: 30rem; }
.authx__win {
  position: absolute; display: grid; align-content: start; gap: 7px; padding: 0 12px 12px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px; backdrop-filter: blur(4px);
}
.authx__win i { display: block; height: 18px; margin: 0 -12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .14);
  background: radial-gradient(circle at 12px 9px, var(--ax-gold) 3px, transparent 3.5px),
              radial-gradient(circle at 24px 9px, rgba(255,255,255,.5) 3px, transparent 3.5px); }
.authx__win em { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.authx__win em:nth-child(3) { width: 70%; } .authx__win em:nth-child(4) { width: 45%; background: var(--ax-cyan); }
.authx__win--a { left: 0; top: 0; width: 58%; height: 104px; }
.authx__win--b { left: 44%; top: 30px; width: 46%; height: 84px; background: rgba(20, 35, 92, .85); }
.authx__dock {
  position: absolute; left: 18%; bottom: 0; display: flex; gap: 8px; padding: 7px 10px;
  border-radius: 10px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
}
.authx__dock b { width: 18px; height: 18px; border-radius: 5px; background: rgba(255, 255, 255, .28); }
.authx__dock b:first-child { background: var(--ax-gold); }
@media (prefers-reduced-motion: no-preference) {
  .authx__win--b { animation: axFloat 7s var(--fx-ease, ease) infinite alternate; }
  @keyframes axFloat { to { transform: translate(-10px, -6px); } }
}

/* ----------------------------------------------------------------- form -- */
.authx > .auth {
  width: 100%; max-width: 440px; margin: auto; padding: clamp(32px, 6vw, 72px) 16px;
  align-self: center;
}
.authx .auth__brand { display: none; }
.authx .auth__panel { box-shadow: none; background: transparent; border: 0; }
.authx .auth__panel::after, .authx .auth__panel::before { display: none; }
.authx .auth__panel { border: 0 !important; }
.authx .auth__panel .panel__body { padding: 0; }
.authx .auth h1 {
  font-family: var(--fx-font-display); font-size: clamp(1.75rem, 2.4vw, 2.15rem) !important;
  letter-spacing: -0.015em; margin-bottom: var(--fx-space-2) !important;
}
.authx__lede { color: var(--fx-color-muted); margin: 0 0 var(--fx-space-6); }
.authx .field { margin-bottom: var(--fx-space-4); }
.authx .input { min-height: 48px; font-size: 1rem; }
.authx .btn--primary.btn--block { min-height: 50px; font-size: 1rem; margin-top: var(--fx-space-2); }
.authx .auth__foot { text-align: left; }
.authx__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.authx__row a { font-size: var(--fx-text-sm); }

@media (max-width: 899px) {
  .authx { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .authx__side { gap: 28px; padding: 24px 16px 28px; justify-content: flex-start; }
  .authx > .auth { align-self: start; }
  .authx__desk, .authx__facts { display: none; }
  .authx__head { font-size: 1.6rem; margin: 0; }
  .authx__kicker { margin-bottom: 10px; }
  .authx > .auth { margin: 0 auto; padding: 32px 16px 48px; }
}
