/* THE ACCOUNT PAGES: create your winery, owner sign-in, forgot / choose a password
   --------------------------------------------------------------------------------
   Scoped to `main.auth-page` (templates/_auth.html sets the layout; each page sets
   `main_class`), so the app's own pages and the staff PIN pad, which share main.css,
   are untouched. Same colours and type as the marketing site (site.css): burgundy
   leads, a deep teal side panel, a heavy grotesque for headlines, pill buttons. */

.auth-page{
  --a-ink:#14111a; --a-mute:#5f5a68; --a-line:#d9d4de; --a-wine:#7a2440; --a-saffron:#f5a800; --a-deep:#0f2e33;
  --a-display:"Bricolage Grotesque","Inter",system-ui,sans-serif;
  --a-body:"Plus Jakarta Sans","Inter",system-ui,sans-serif;
  max-width:none; padding:0; margin:0; font-family:var(--a-body); color:var(--a-ink);
}

.auth-split{display:grid; grid-template-columns:minmax(380px, 5fr) 6fr; min-height:100vh}

/* ---------- the dark side panel ---------- */
.auth-side{background:var(--a-deep); color:#fff; padding:2.5rem 3rem; display:flex; flex-direction:column;
  justify-content:space-between; gap:2rem; position:sticky; top:0; height:100vh; overflow:hidden}
.auth-brand{display:flex; align-items:center; gap:.7rem; font-family:var(--a-display); font-weight:800;
  font-size:1.6rem; letter-spacing:-.03em; color:#fff; text-decoration:none}
.auth-brand b{color:#f2b6c6}
.auth-mark{display:flex; align-items:center; justify-content:center; width:48px; height:48px; border-radius:50%; background:#fff}
.auth-mark img{height:30px; width:auto}
.auth-page .auth-pitch h2{font-family:var(--a-display); font-weight:800; font-size:clamp(2.6rem, 4.6vw, 4.4rem);
  line-height:.96; letter-spacing:-.05em; color:#fff; margin:0; text-wrap:balance}
.auth-pitch p{font-size:1.2rem; font-weight:500; color:rgba(255,255,255,.82); margin:1.2rem 0 0; max-width:22em; line-height:1.4}
.auth-side .offer{margin-top:2rem}
.auth-side .offer li, .auth-side .offer li b{color:#fff}
.auth-side .offer li svg{color:var(--a-saffron)}
.auth-peek{align-self:flex-end; width:112%; margin-right:-3rem; margin-bottom:-2.5rem; height:280px; overflow:hidden;
  border-radius:20px 0 0 0; box-shadow:0 20px 60px rgba(0,0,0,.4); background:#fff}
.auth-peek img{display:block; width:100%; height:100%; object-fit:cover; object-position:top left}

/* ---------- the form column ---------- */
.auth-main{display:flex; align-items:center; justify-content:center; padding:3rem 2rem; background:#fff}
.auth-card{width:100%; max-width:460px}
.auth-page .auth-card h1{font-family:var(--a-display); font-weight:800; font-size:clamp(2.3rem, 4vw, 3.2rem);
  letter-spacing:-.05em; line-height:1; margin:0 0 .6rem; color:var(--a-ink)}
.auth-page .auth-card .hint, .auth-page .auth-card .muted{color:var(--a-mute)}
.auth-card .hint{font-size:1rem; line-height:1.5}
.auth-card a{color:var(--a-wine); font-weight:700}
.auth-card .signup-back{margin:0 0 1.4rem}
.auth-card .signup-back a{color:var(--a-mute); font-weight:600; text-decoration:none}

.auth-card form.grid{display:grid; gap:1.1rem; margin-top:1.4rem}
.auth-page .auth-card label{display:block; font-weight:700; font-size:.95rem; color:var(--a-ink); margin-bottom:.35rem}
.auth-card input:not([type=checkbox]):not([type=hidden]), .auth-card select{width:100%; min-height:54px; padding:.7rem 1rem;
  font:inherit; font-size:1.05rem; color:var(--a-ink); background:#fff; border:2px solid var(--a-line); border-radius:14px;
  box-sizing:border-box}
.auth-card input:not([type=checkbox]):focus, .auth-card select:focus{outline:none; border-color:var(--a-wine);
  box-shadow:0 0 0 4px rgba(122,36,64,.14)}
.auth-card input[type=checkbox]{width:22px; height:22px; accent-color:var(--a-wine)}
.auth-page .auth-card .btn-lg, .auth-page .auth-card a.btn{display:flex; align-items:center; justify-content:center;
  width:100%; min-height:58px; border:0; border-radius:999px; background:var(--a-wine); color:#fff; font-family:var(--a-body);
  font-weight:700; font-size:1.15rem; cursor:pointer; text-decoration:none}
.auth-page .auth-card .btn-lg:hover, .auth-page .auth-card a.btn:hover{filter:brightness(1.1)}
.auth-page .auth-card .btn-lg:focus-visible, .auth-page .auth-card a.btn:focus-visible{outline:3px solid var(--a-saffron); outline-offset:3px}
.auth-card .su-sample{border:2px solid var(--a-line); border-radius:18px; padding:1rem 1.1rem}

@media (max-width:900px){
  .auth-split{grid-template-columns:1fr; min-height:0}
  .auth-side{position:static; height:auto; padding:1.5rem 1.4rem 2rem; gap:1.2rem}
  .auth-page .auth-pitch h2{font-size:clamp(2.1rem, 9vw, 3rem)}
  .auth-pitch p{font-size:1.05rem; margin-top:.8rem}
  .auth-side .offer{margin-top:1.2rem}
  .auth-peek{display:none}
  .auth-main{padding:2rem 1.2rem 3rem; align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){ .auth-page *{transition:none !important} }
