/* auth.css — the sign-in panel. Added 2026-09-18 (login redesign, review R3).

   /agent-login is ONE form: email + password first, the private agent code
   disclosed in place ("Have an agent code?"), Face ID / Touch ID when the shell
   offers it, and a quiet link to the client sign-in on /. The Workspace dropdown
   (Broker or agent / Client) is gone: the agent portal always posts staff sign-in.

   This is a layer linked after legibility.css. It also carries the legibility
   floors the auth screen was missing (premium-product.css sets the auth labels
   at 9px, the buttons at 10px and the ACCESS badge at 8px with higher
   specificity than legibility.css reaches). To revert: delete this file and its
   <link>; the markup in index.html and the handlers in app.js are the other half. */

/* Field groups: one active at a time. */
.auth-fieldset { display: grid; gap: 20px; }
.auth-fieldset[hidden] { display: none !important; }

/* The in-place disclosure. A text button, left-aligned, with the tap floor. */
.auth-form .auth-mode-toggle {
  justify-self: start;
  min-height: var(--rcr-tap, 44px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red, #b4000b);
  font-size: var(--rcr-label-lg, 12px);
  font-weight: 700;
  letter-spacing: var(--rcr-track, .04em);
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
}
.auth-form .auth-mode-toggle:hover { color: var(--red-deep, #8c0009); }

/* The client link: secondary reading text, tappable. */
.auth-form .auth-alt {
  margin: 2px 0 0;
  color: var(--muted, #6a7076);
  font-size: var(--rcr-body-sm, 13px);
  line-height: 1.5;
}
.auth-form .auth-alt a {
  display: inline-flex;
  align-items: center;
  min-height: var(--rcr-tap, 44px);
  color: var(--ink, #141b1f);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Legibility floors the auth screen was missing (R1 on this screen). */
.auth-active .auth-form label { font-size: var(--rcr-label, 11px); letter-spacing: var(--rcr-track-eyebrow, .08em); }
.auth-active .auth-form .primary,
.auth-active .auth-form .secondary { font-size: var(--rcr-label-lg, 12px); letter-spacing: var(--rcr-track, .04em); }
.auth-active .auth-panel:before { font-size: var(--rcr-label, 11px); letter-spacing: var(--rcr-track-eyebrow, .08em); }
.auth-active .auth-copy { font-size: 15px; }

/* R3: at tablet widths the two-column gate left the email field 243px for a
   293px address. Keep a single column until 900px; the market visual becomes a
   short banner above the panel instead of a full-height column beside it. */
@media (min-width: 681px) and (max-width: 900px) {
  .auth-active .auth-gate { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-active .auth-visual { min-height: 260px; padding: 30px 34px; }
  .auth-active .auth-visual h1 { font-size: clamp(40px, 6vw, 52px); margin: 10px 0 14px; }
  .auth-active .auth-panel { padding: 48px clamp(34px, 6vw, 64px); }
  .auth-active .auth-form { width: 100%; max-width: 520px; margin: 0 auto; }
}
