/* ==========================================================================
   Vanguard Property Passport - member sign-in
   Split layout: ink brand panel + paper sign-in card. Reuses core tokens,
   .framed, .btn, .brand__mark from styles.css.
   ========================================================================== */

/* No reveal JS here, so static corner marks if .framed is used. */
.pp-auth .framed::before,
.pp-auth .framed::after { transform: scale(1); transition: none; }

.pp-auth { margin: 0; background: var(--ink); }

.auth { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1.05fr .95fr; }

/* --- Brand panel (left) ------------------------------------------------- */
.auth__brand {
  background: var(--ink); color: var(--paper);
  display: grid; grid-template-rows: auto 1fr auto; gap: 2rem;
  padding: clamp(2.25rem, 5vw, 4.5rem);
  position: relative; overflow: hidden;
}
.auth__brand.blueprint { background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 26px 26px; }
.auth__brand::after { content: ""; position: absolute; top: 1.4rem; right: 1.4rem; width: 16px; height: 16px; border-top: 2px solid var(--amber); border-right: 2px solid var(--amber); pointer-events: none; }

.auth__logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--paper); }
.auth__logo-text { font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; font-size: 1rem; display: inline-flex; align-items: baseline; gap: .5rem; }
.auth__logo-sub { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-ink); font-weight: 400; }

.auth__pitch { align-self: center; max-width: 36ch; }
.auth__headline { color: var(--paper); font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.1rem); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 1.5rem; }
.auth__lead { color: var(--muted-on-ink); font-size: clamp(1.05rem, .98rem + .4vw, 1.25rem); max-width: 42ch; margin: 0; }
.auth__points { list-style: none; margin: 2.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.auth__points li { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .02em; color: var(--paper); display: flex; align-items: baseline; gap: .8rem; }
.auth__points li::before { content: ""; width: .5rem; height: .5rem; flex: none; border: 1.5px solid var(--amber); transform: translateY(1px); }

/* Footer zone: a spec-sheet baseline so the lower panel reads as an anchored
   footer, not a stranded line in empty space. */
.auth__foot { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.auth__foot-note { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--muted-on-ink); margin: 0; }
.auth__foot-meta { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-on-ink); margin: 0; }

/* --- Sign-in panel (right) ---------------------------------------------- */
.auth__panel { background: var(--paper); display: grid; place-items: center; padding: clamp(1.75rem, 5vw, 3.5rem); }
.auth__card { width: 100%; max-width: 380px; }
.auth__card-mark { width: 2.4rem; height: 2.4rem; font-size: 1.25rem; margin-bottom: 1.2rem; }
.auth__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin: 0 0 .3rem; }
.auth__sub { color: var(--muted); margin: 0 0 1.4rem; }

.auth__demo { background: var(--amber-tint); color: var(--amber-text); border: 1px solid var(--line-strong); border-left: 2px solid var(--amber); font-family: var(--font-mono); font-size: .72rem; line-height: 1.5; letter-spacing: .01em; padding: .7rem .85rem; margin: 0 0 1.5rem; }

.auth__form { display: flex; flex-direction: column; gap: 1.1rem; }
.auth__error { background: #FBE9E4; color: #9C2A12; border: 1px solid #E3B9AC; font-size: .88rem; padding: .6rem .8rem; margin: 0; border-radius: var(--radius); }
.auth__error:empty { display: none; }

.auth__field { display: flex; flex-direction: column; gap: .4rem; }
.auth__field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.auth__field label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.auth__field input { width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text); background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .75rem .85rem; }
.auth__field input:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.auth__field input::placeholder { color: #A39E92; }
.auth__forgot { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .02em; color: var(--amber-text); text-decoration: none; background: none; border: 0; cursor: pointer; padding: .4rem 0; margin: -.4rem 0; }
.auth__forgot:hover { text-decoration: underline; }

.auth__form .btn { margin-top: .4rem; }

.auth__alt { font-size: .9rem; color: var(--muted); margin: 1.6rem 0 0; }
.auth__alt a { color: var(--amber-text); text-decoration: none; font-weight: 500; }
.auth__alt a:hover { text-decoration: underline; }
.auth__back { font-family: var(--font-mono); font-size: .74rem; margin: .9rem 0 0; }
.auth__back a { color: var(--muted); text-decoration: none; }
.auth__back a:hover { color: var(--ink); }

/* --- Responsive: stack, brand panel becomes a compact header ------------- */
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; min-height: 100svh; }
  .auth__brand { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.6rem clamp(1.25rem, 5vw, 2rem) 1.8rem; }
  .auth__pitch { align-self: auto; max-width: none; }
  .auth__headline { font-size: clamp(1.6rem, 1.2rem + 3vw, 2.1rem); margin-bottom: .6rem; }
  .auth__lead { font-size: 1rem; max-width: 52ch; }
  .auth__points { display: none; }
  .auth__foot { display: none; }
  .auth__brand::after { display: none; }
  .auth__panel { padding-block: 2rem 3rem; }
  .auth__card-mark { display: none; }
}
@media (max-width: 820px) and (min-width: 521px) {
  /* keep the pitch tidy on small tablets */
  .auth__lead { max-width: 60ch; }
}
