/* ============================================================
   Broker Genius — auth.css
   Converted from Claude Design "Login" + "Sign Up".

   Shared by templates/login.php and templates/sign-up.php.
   Every rule is scoped under a page root class so the two
   standalone screens cannot collide:

     .auth            shared chrome (header, footer, panel, fields)
     .auth--login     Login-only overrides
     .auth--signup    Sign Up-only overrides

   Both screens are presentational designs of an auth flow — the
   forms are not wired to WordPress authentication.
   ============================================================ */

/* ---------- Base, from the design's <helmet> style block ----------
   (main.css already carries the identical tokens and body rules;
   restated here scoped to the bare-chrome body so the standalone
   screens stand on their own.) */
body.bg-bare {
  margin: 0;
  background: var(--paper);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
body.bg-bare * { box-sizing: border-box; }
/* Single-class selector on purpose: the component link rules further down
   are also (0,1,1) and must be able to win on source order. */
.bg-bare a { color: var(--ink); text-decoration: none; }
.bg-bare a:hover { color: var(--brown); }

@keyframes bg-blink { 50% { opacity: 0.25; } }

/* ---------- Page shell ---------- */
.auth {
  --auth-mono-ink: #6A6F7E;          /* the design's mono micro-label grey */
  --auth-rule: rgba(255, 255, 255, 0.25);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--font-sans);
}

/* ============================================================
   Compact header
   ============================================================ */
.auth-head {
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
  padding: 0 28px;
}
.auth-head__inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.auth-head__logo { display: flex; align-items: center; }
.auth-head__logo img { height: 30px; width: auto; display: block; }

.auth-head__actions { display: flex; align-items: center; gap: 16px; }
.auth-head__prompt {
  font: 500 12px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--auth-mono-ink);
}
.auth-head__cta {
  font-size: 14px;
  font-weight: 700;
  padding: 11px 20px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}
.auth-head__cta--accent { background: var(--accent); }
.auth-head__cta--accent:hover {
  color: var(--ink);
  background: var(--accent-deep);
  box-shadow: 1px 1px 0 var(--ink);
}
.auth-head__cta--paper { background: var(--card); }
.auth-head__cta--paper:hover {
  color: var(--ink);
  background: var(--accent);
  box-shadow: 1px 1px 0 var(--ink);
}

/* ============================================================
   Two-column body
   ============================================================ */
.auth-main {
  flex: 1 1 auto;
  display: grid;
}
.auth--login .auth-main {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
}
.auth--signup .auth-main {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

/* ---------- Dark pitch column ---------- */
.auth-aside {
  background: var(--ink);
  color: #fff;
  border-right: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
}
.auth--login .auth-aside { padding: 70px 60px; }
.auth--signup .auth-aside { padding: 64px 56px; }

.auth-aside__badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 9px;
  font: 600 11.5px var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 7px 12px;
}
.auth-aside__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: bg-blink 1.8s ease-in-out infinite;
}

.auth-aside__title {
  letter-spacing: -0.05em;
  font-weight: 700;
  font-stretch: 94%;
  margin: 26px 0 0;
}
.auth--login .auth-aside__title { font-size: 74px; line-height: 0.9; }
.auth--signup .auth-aside__title { font-size: 62px; line-height: 0.92; }

.auth-aside__lede {
  line-height: 1.6;
  color: var(--sand-2);
  text-wrap: pretty;
}
.auth--login .auth-aside__lede { font-size: 18px; margin: 18px 0 0; max-width: 36ch; }
.auth--signup .auth-aside__lede { font-size: 17px; margin: 16px 0 0; max-width: 38ch; }

/* Login: three stats pinned to the bottom of the dark column */
.auth-stats {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--auth-rule);
  padding-top: 22px;
  gap: 18px;
}
.auth-stat__v { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.auth-stat__k {
  font: 600 10px var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-top: 6px;
}

/* Sign Up: numbered onboarding steps */
.auth-steps {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--auth-rule);
}
.auth-step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--auth-rule);
}
.auth-step__n {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 12px var(--font-mono);
}
.auth-step__title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.auth-step__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--sand-2);
  margin: 5px 0 0;
  max-width: 34ch;
}

.auth-aside__foot {
  margin-top: auto;
  padding-top: 26px;
  font: 500 12px var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--sand-2);
}
.auth-aside__foot a { color: var(--accent); text-decoration: underline; }
.auth-aside__foot a:hover { color: var(--accent-deep); }

/* ============================================================
   Form column + panel
   ============================================================ */
.auth-form-col { background: var(--paper); }
.auth--login .auth-form-col { padding: 70px 60px; display: flex; align-items: center; }
.auth--signup .auth-form-col { padding: 56px 56px 64px; }

.auth-panel {
  border: 2px solid var(--ink);
  background: var(--card);
  box-shadow: 8px 8px 0 rgba(16, 22, 42, 0.10);
  margin: 0 auto;
}
.auth--login .auth-panel { width: 100%; max-width: 440px; }
.auth--signup .auth-panel { max-width: 640px; }

.auth-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
}
.auth--login .auth-panel__head { padding: 14px 24px; }
.auth--signup .auth-panel__head { padding: 14px 26px; }

.auth-panel__title,
.auth-panel__status {
  font: 600 11px var(--font-mono);
  letter-spacing: 0.12em;
}
.auth-panel__status { color: var(--brown); }
/* Login turns the status ink-black once "authenticating"; Sign Up's
   progress label keeps the brown it has in the design. */
.auth--login .auth-panel__status.is-sent { color: var(--ink); }
.auth--signup .auth-panel__status.is-sent { color: var(--brown); }

.auth--login .auth-panel__body {
  padding: 28px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth--signup .auth-panel__body { padding: 28px 26px 32px; }

/* ---------- Fields ---------- */
.auth-field { display: flex; flex-direction: column; gap: 7px; }
.auth-field--spaced { margin-top: 16px; }

.auth-field__label {
  font: 600 10.5px var(--font-mono);
  letter-spacing: 0.11em;
  color: var(--auth-mono-ink);
}
.auth-field__label--row { display: flex; justify-content: space-between; }

.auth-input,
.auth-select {
  font: 400 15px var(--font-sans);
  padding: 13px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  outline: none;
  width: 100%;
}
.auth-input:focus,
.auth-select:focus {
  background: var(--card);
  box-shadow: 3px 3px 0 var(--accent);
}

.auth-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.auth-grid2--spaced { margin-top: 16px; }

/* ---------- Checkbox rows ---------- */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.auth-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--muted);
}
.auth-check__box {
  width: 17px;
  height: 17px;
  accent-color: var(--ink);
}
.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.auth-terms .auth-check__box { margin-top: 2px; }
.auth-terms a { text-decoration: underline; }

/* ---------- Show / hide password ---------- */
.auth-reveal {
  font: 600 10.5px var(--font-mono);
  letter-spacing: 0.1em;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--brown);
  text-decoration: underline;
}

/* ---------- Password strength meter (Sign Up) ---------- */
.auth-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.auth-strength__bar {
  flex: 1 1 auto;
  height: 8px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
}
.auth-strength__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
}
.auth-strength__label {
  font: 600 10.5px var(--font-mono);
  letter-spacing: 0.11em;
  color: var(--auth-mono-ink);
}

/* ---------- Submit ---------- */
.auth-submit {
  font: 700 16px var(--font-sans);
  border: 2px solid var(--ink);
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
}
.auth-submit:hover { box-shadow: 1px 1px 0 var(--ink); }
.auth-submit.is-sent { background: var(--ink); color: var(--accent); }

.auth--login .auth-submit { padding: 15px 20px; margin-top: 4px; }
.auth--signup .auth-submit { width: 100%; padding: 16px 20px; margin-top: 22px; }

.auth-finestamp {
  text-align: center;
  font: 500 11.5px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--auth-mono-ink);
  margin-top: 14px;
}

.auth-panel__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}
.auth-panel__foot a { text-decoration: underline; }

/* ============================================================
   Compact footer
   ============================================================ */
.auth-foot {
  border-top: 2px solid var(--ink);
  background: var(--paper-2);
  padding: 16px 28px;
}
.auth-foot__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  font: 500 11.5px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--auth-mono-ink);
}
.auth-foot__links { display: flex; gap: 18px; }

/* ============================================================
   Responsive (mirrors the main.css breakpoints)
   ============================================================ */
@media (max-width: 1080px) {
  .auth--login .auth-main,
  .auth--signup .auth-main { grid-template-columns: 1fr; }

  .auth-aside {
    border-right: none;
    border-bottom: 2px solid var(--ink);
  }
  .auth--login .auth-aside,
  .auth--signup .auth-aside { padding: 54px 40px; }

  .auth--login .auth-aside__title { font-size: 58px; }
  .auth--signup .auth-aside__title { font-size: 50px; }

  .auth-stats { margin-top: 34px; }
  .auth-aside__foot { margin-top: 26px; }

  .auth--login .auth-form-col,
  .auth--signup .auth-form-col { padding: 54px 40px; }

  /* Stacked, the login panel sits at the top of its band rather than
     floating in the middle of a very tall row. */
  .auth--login .auth-form-col { align-items: flex-start; }
}

@media (max-width: 720px) {
  .auth-head { padding: 0 18px; }
  .auth-head__inner { height: auto; padding: 14px 0; flex-wrap: wrap; gap: 12px; }
  .auth-head__actions { gap: 12px; }
  .auth-head__prompt { font-size: 11px; }

  .auth--login .auth-aside,
  .auth--signup .auth-aside { padding: 40px 20px; }
  .auth--login .auth-form-col,
  .auth--signup .auth-form-col { padding: 40px 20px 48px; }

  .auth--login .auth-aside__title { font-size: 44px; }
  .auth--signup .auth-aside__title { font-size: 40px; }
  .auth--login .auth-aside__lede,
  .auth--signup .auth-aside__lede { font-size: 16px; }

  .auth-stats { grid-template-columns: 1fr; gap: 14px; }
  .auth-grid2 { grid-template-columns: 1fr; }

  .auth--login .auth-panel__body { padding: 24px 18px 26px; }
  .auth--signup .auth-panel__body { padding: 24px 18px 28px; }
  .auth--login .auth-panel__head,
  .auth--signup .auth-panel__head { padding: 13px 18px; }

  .auth-panel { box-shadow: 5px 5px 0 rgba(16, 22, 42, 0.10); }
  .auth-panel__foot { flex-direction: column; align-items: flex-start; gap: 10px; }

  .auth-foot { padding: 16px 18px; }
  .auth-foot__inner { gap: 12px; }
}
