/* Login & Register (login.html, register.html). Built from the site's existing parts: the contact form
   fields, outline/primary buttons, a product-graphic panel holding an iso scene with scene labels,
   promo price/badge/code from promo.css. */

/* No site header or footer here: the page is a single centred auth bench with its own logo. */
.auth-main{min-height:100vh;min-height:100svh}
.auth-section{width:100%;padding:0;--shell:max(24px,5.2vw,calc((100vw - 1800px) / 2 + 5.2vw))}  /* same side padding as .section-shell on the homepage */
.auth-brand{display:inline-flex;align-self:flex-start;margin-bottom:12px}
/* Full-bleed split: the form sits on the page background, the illustration fills the right half. No framing box. */
.auth-bench{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);min-height:100vh;min-height:100svh}

/* ---------- Form panel ---------- */
.auth-panel{display:flex;flex-direction:column;justify-content:center;gap:20px;width:100%;padding:48px clamp(24px,5vw,72px) 48px var(--shell);min-width:0}
/* Page title uses the site h2 scale (same tokens as :root h2). */
:root .auth-panel h1{margin:0;font-size:var(--heading-two-size);line-height:var(--heading-two-leading);letter-spacing:var(--heading-two-tracking);font-weight:600}
.auth-lead{margin:-8px 0 4px;font-size:16px;line-height:24px;color:var(--muted);letter-spacing:0}
.auth-form{display:flex;flex-direction:column;gap:18px}
.auth-field input{min-height:48px}
.auth-password,.auth-phone{position:relative;display:flex;align-items:stretch}
.auth-password input{padding-right:52px}
.auth-reveal{position:absolute;right:0;top:0;bottom:0;width:48px;display:grid;place-items:center;color:var(--muted);transition:color .2s}
.auth-reveal:hover,.auth-reveal[aria-pressed=true]{color:var(--primary-text)}
.auth-reveal:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}
.auth-eye{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.auth-eye-off{opacity:0;transition:opacity .2s}
.auth-reveal[aria-pressed=true] .auth-eye-off{opacity:1}
.auth-prefix{display:flex;align-items:center;padding:0 14px;border:1px solid var(--line);border-right:0;background:var(--soft);font-size:16px;font-weight:600;color:var(--ink);line-height:24px;letter-spacing:0}
.auth-phone input{flex:1;min-width:0}
.auth-hint{font-size:12px;line-height:18px;color:var(--muted);letter-spacing:.008em}
.auth-row-end{display:flex;justify-content:flex-end;margin-top:-6px}
.auth-link,.auth-legal a,.auth-switch a,.auth-check a{color:var(--primary-text);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.auth-link{font-size:14px;line-height:22px;letter-spacing:0}
.auth-link:hover,.auth-legal a:hover,.auth-check a:hover{text-decoration-thickness:2px}
.auth-check{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:22px;color:var(--ink);cursor:pointer;letter-spacing:0}
.auth-check input{width:18px;height:18px;margin:2px 0 0;accent-color:var(--primary);flex-shrink:0}
.auth-check input[aria-invalid=true]{outline:2px solid #C2410C;outline-offset:2px}
.auth-submit{width:100%;justify-content:space-between;min-height:52px;margin-top:4px}
.auth-submit[disabled]{opacity:.75;cursor:progress}
.auth-or{display:flex;align-items:center;gap:16px;font-size:12px;line-height:16px;letter-spacing:.06em;font-weight:600;color:var(--muted)}
.auth-or::before,.auth-or::after{content:"";flex:1;height:1px;background:var(--line)}
.auth-sso{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.auth-sso-btn{justify-content:space-between;min-height:48px;font-size:15px;line-height:24px;letter-spacing:0}
.auth-legal{margin:0;font-size:13px;line-height:22px;color:var(--muted);letter-spacing:.004em}
.auth-switch{margin:4px 0 0;padding-top:20px;border-top:1px solid var(--line);font-size:15px;line-height:24px;color:var(--muted);letter-spacing:0}
.auth-switch a{font-weight:600;text-decoration:none;color:var(--ink);display:inline-flex;gap:8px;margin-left:4px}
.auth-switch a:hover{color:var(--primary-text)}
.auth-noscript{margin-top:16px;font-size:14px;line-height:22px;letter-spacing:0}

/* ---------- Visual panel ---------- */
.auth-visual{border:0;justify-content:flex-start!important;padding:32px var(--shell) 32px clamp(24px,4vw,64px);min-height:0}
.auth-visual .graphic-meta{font-size:8px;letter-spacing:.1em;line-height:12px}
.auth-scene{position:relative;margin:auto -8px}
.auth-svg{display:block;width:100%;height:auto;overflow:hidden}
.auth-scene>.scene-label{z-index:2;white-space:nowrap}
.auth-label-a{left:22%;top:3%}
.auth-label-b{left:3%;top:66%}
.auth-label-c{left:47%;top:8%}
.auth-label-d{left:75%;top:20%}
[data-auth-scene=register] .auth-label-a{left:26%;top:8%}
[data-auth-scene=register] .auth-label-c{left:37%;top:30%}
[data-auth-scene=register] .auth-label-d{left:72%;top:14%}
.auth-card-face circle,.auth-card-face rect{fill:#F9FBFD}
.auth-card-face .is-dots circle{fill:#B9DCCB}
.auth-sso-chip .chip-top{fill:#245740}
.auth-sso-chip .chip-front{fill:#1B3F2D}
.auth-sso-chip .chip-side{fill:#1E503B}
.auth-ui rect{fill:#336950}
.auth-ui .is-bar{fill:#477E63}
.auth-ui .is-on{fill:var(--primary)}
.auth-iso-mark{font:600 11px var(--font);fill:#F9FBFD}
.sheet .box-top,.sheet .box-front{fill:var(--surface)}
.auth-sheet-face rect{fill:none;stroke:#6F9C86;stroke-width:.8}
.auth-sheet-face .is-send{fill:var(--primary);stroke:none}
.auth-verify circle{fill:none;stroke:#F9FBFD;stroke-width:1.6}
.auth-verify path{fill:none;stroke:#F9FBFD;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.auth-ghost polygon{fill:none;stroke:var(--primary);stroke-width:.9;stroke-dasharray:4 3}
.auth-ghost{animation:server-breathe 6s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
.auth-avatar circle,.auth-avatar path{fill:none;stroke:#F9FBFD;stroke-width:1.6;stroke-linecap:round}
.auth-scene.is-armed .auth-part{opacity:0}
.auth-scene.is-in .auth-part{animation:auth-arrive .7s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--i) * 140ms + 120ms)}
@keyframes auth-arrive{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:none}}
.auth-promo{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding:20px 0 0;border-top:1px solid var(--line)}
.auth-promo p{margin:0;font-size:14px;line-height:24px;color:var(--ink);letter-spacing:0}
.auth-promo s{color:var(--muted)}
.auth-promo .promo-badge{vertical-align:1px;margin-left:4px}
.auth-promo .promo-code{flex-shrink:0}


/* ---------- Responsive ---------- */
@media(max-width:1150px){
  .auth-panel{padding-top:40px;padding-bottom:40px}
}
@media(max-width:960px){
  .auth-bench{grid-template-columns:minmax(0,1fr);min-height:0}
  .auth-panel{padding-left:var(--shell);padding-right:var(--shell)}
  .auth-visual{padding-left:var(--shell);padding-right:var(--shell)}
}
@media(max-width:700px){
  .auth-panel{padding:28px var(--shell)}
  .auth-visual{padding:24px var(--shell)}
  .auth-sso{grid-template-columns:minmax(0,1fr)}
  .auth-scene>.scene-label{display:none}
  .auth-promo{flex-direction:column;align-items:flex-start}
}
@media(prefers-reduced-motion:reduce){
  .auth-ghost,.auth-scene.is-in .auth-part{animation:none}
}

/* ---------- Register: one viewport tall; the form column scrolls, the illustration stays put ---------- */
@media(min-width:961px){
  .auth-bench-register{height:100vh;height:100svh;min-height:0;overflow:hidden}
  .auth-bench-register>.auth-panel{
    max-width:none;margin:0;height:100%;overflow-y:auto;overscroll-behavior:contain;
    justify-content:flex-start;
    padding-left:var(--shell)
  }
  .auth-bench-register>.auth-panel>:first-child{margin-top:auto}
  .auth-bench-register>.auth-panel>:last-child{margin-bottom:auto}
  .auth-bench-register>.auth-visual{height:100%;overflow:hidden}
}

/* Register only: the form column still scrolls, its scrollbar is just not drawn. */
.auth-bench-register>.auth-panel{scrollbar-width:none;-ms-overflow-style:none}
.auth-bench-register>.auth-panel::-webkit-scrollbar{display:none;width:0;height:0}
.auth-bench-register .auth-prefix{background:var(--surface)}

/* Social sign-in: supplied provider logos at their original artwork, sized only. */
.auth-sso-btn{gap:12px}
.auth-sso-logo{display:block;width:20px;height:20px;object-fit:contain;flex-shrink:0}
.auth-sso-text{flex:1;text-align:left}
/* The GitHub mark is black on transparent; show it in white on the dark theme so it stays visible. */
[data-theme=dark] .auth-sso-logo-github{filter:invert(1)}
:root body .auth-sso .auth-sso-btn{gap:10px;padding-left:14px;padding-right:14px;font-size:14px;white-space:nowrap;line-height:22px;letter-spacing:0}
:root body .auth-sso .auth-sso-btn>.auth-sso-text{font-size:15px;line-height:22px}
@media(min-width:961px) and (max-width:1279px){.auth-sso{grid-template-columns:minmax(0,1fr)}}  /* narrow form column: stack the two providers */
