/* Sign-up, sign-in and the password pages (owner, 2026-12-02: mock-up v1,
 * https://claude.ai/artifact/BEp6ArtKpzQmz5Mum13FLL).
 *
 * Loaded only by templates/public/signup.html and templates/auth/*.html,
 * after site.css, whose tokens and shared parts (.btn, .tag, .dot) it
 * builds on. Every rule names one of these pages' own classes (`au-`), so it
 * restyles nothing elsewhere. One job per page: the menu's links and the big
 * footer step aside and the form is one card in the middle (`.au-centre`).
 * The WordPress connect page keeps the split (`.au-split`): its picture shows
 * what the plugin passes.
 */

/* the site's header keeps the logo, language and theme; its page links and
   the phone menu step aside while a form is open */
body:has(.au-page) .site-links,
body:has(.au-page) .site-menu-btn,
body:has(.au-page) #mobile-menu { display: none !important; }

.au-ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.au-page { background: var(--bg); color: var(--text); }
.au-page [hidden] { display: none !important; }
.au-split { display: grid; min-height: calc(100vh - 68px); }
@media (min-width: 980px) { .au-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.au-pane { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 6vw, 72px) max(20px, env(safe-area-inset-right, 0px)) clamp(40px, 6vw, 72px) max(20px, env(safe-area-inset-left, 0px)); }
.au-col { width: 100%; max-width: 440px; margin: 0 auto; }
.au-col-wide { max-width: 560px; }

/* the navy side: what you get */
.au-side { position: relative; overflow: hidden; background: var(--band); color: #fff; padding: 36px max(20px, env(safe-area-inset-right, 0px)) 40px max(20px, env(safe-area-inset-left, 0px)); }
@media (min-width: 980px) { .au-side { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 5vw, 72px); } }
/* on a phone only the sign-up's "what you get" list follows the form */
@media (max-width: 979px) {
  .au-side-desk, .au-side .au-mini, .au-side-2, .au-side[data-signup-side="2"] { display: none !important; }
}
.au-side[data-signup-side="1"] .au-side-2, .au-side[data-signup-side="2"] .au-side-1 { display: none; }
.au-side::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, .09) 1px, transparent 1.6px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(70% 60% at 70% 30%, #000, transparent); mask-image: radial-gradient(70% 60% at 70% 30%, #000, transparent); }
.au-side > * { position: relative; max-width: 560px; }
.au-side-h { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: rgba(255, 255, 255, .7); letter-spacing: -.01em; }
.au-gets { margin-top: 18px; display: grid; }
.au-gets li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.au-gets .au-gi { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.au-gets .au-gi svg { width: 17px; height: 17px; }
.au-gets b { font-weight: 600; }
.au-gets p { color: rgba(255, 255, 255, .66); font-size: 14.5px; line-height: 1.5; }

/* the setup steps, drawn small (sign-up step 1) */
.au-mini { margin-top: 28px; max-width: 420px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 18px; background: rgba(255, 255, 255, .04); }
.au-mini-h { font-size: 13px; color: rgba(255, 255, 255, .66); }
.au-mini-bar { margin-top: 10px; height: 4px; border-radius: 9px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.au-mini-bar i { display: block; height: 100%; width: 64%; background: #62a8ee; border-radius: 9px; }
.au-mini ol { margin-top: 12px; display: grid; gap: 7px; font-size: 14px; }
.au-mini li { display: flex; align-items: center; gap: 9px; color: rgba(255, 255, 255, .85); }
.au-mini li svg { width: 15px; height: 15px; color: #47cd89; stroke-width: 2.4; }
.au-mini li.au-wait { color: rgba(255, 255, 255, .45); }
.au-mini li.au-wait svg { color: rgba(255, 255, 255, .3); }
@media (prefers-reduced-motion: no-preference) {
  .au-mini-bar i { animation: au-grow 6s ease-in-out infinite; }
}
@keyframes au-grow { 0% { width: 8%; } 70%, 100% { width: 100%; } }

/* the new system, drawn as it will look (sign-up step 2) */
.au-pv { margin-top: 18px; border-radius: 16px; overflow: hidden; background: var(--card); color: var(--text); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.au-pv-bar { display: flex; align-items: center; gap: 7px; padding: 10px 12px; background: var(--panel); border-bottom: 1px solid var(--line); }
.au-pv-bar > i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.au-pv-url { margin-left: 8px; flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--card); font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.au-pv-url svg { width: 12px; height: 12px; color: var(--green); }
.au-pv-url b { color: var(--text); font-weight: 600; }
.au-pv-body { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); min-height: 240px; }
.au-pv-nav { border-right: 1px solid var(--line); padding: 14px 10px; display: grid; align-content: start; gap: 3px; font-size: 12.5px; color: var(--muted); }
.au-pv-shop { display: flex; align-items: center; gap: 8px; padding: 2px 6px 12px; font-weight: 600; color: var(--text); font-size: 13px; min-width: 0; }
.au-pv-shop > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-av { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 700; flex: none; }
.au-pv-nav > span { padding: 6px 8px; border-radius: 7px; }
.au-pv-nav > span.au-on { background: var(--ink); color: var(--on-ink); font-weight: 600; }
.au-pv-main { padding: 16px 18px; }
.au-pv-main h4 { font-family: var(--display); font-weight: 600; font-size: 16px; }
.au-pv-main small { display: block; margin-top: 14px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.au-pv-band { margin-top: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; }
.au-pv-band div { padding: 10px 12px; font-size: 11.5px; color: var(--muted); }
.au-pv-band div + div { border-left: 1px solid var(--line); }
.au-pv-band b { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 19px; color: var(--text); }
.au-pv-rows { margin-top: 12px; display: grid; gap: 6px; }
.au-pv-rows i { display: block; height: 9px; border-radius: 5px; background: var(--panel); }
.au-pv-rows i:nth-child(2) { width: 80%; }
.au-pv-rows i:nth-child(3) { width: 62%; }
.au-pv-cap { margin-top: 16px; font-size: 13.5px; color: rgba(255, 255, 255, .6); }

/* the account at a glance (sign-in) */
.au-acct { margin-top: 18px; max-width: 420px; border-radius: 16px; background: var(--card); color: var(--text); padding: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.au-acct-top { display: flex; align-items: center; gap: 12px; }
.au-acct-top .au-av { width: 36px; height: 36px; border-radius: 10px; font-size: 15px; }
.au-acct-top b { font-weight: 600; display: block; }
.au-acct-top small { display: block; color: var(--muted); font-size: 12.5px; }
.au-acct dl { margin-top: 14px; border-top: 1px solid var(--line); }
.au-acct dl div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.au-acct dt { color: var(--muted); }
.au-acct dd { font-weight: 600; display: flex; align-items: center; gap: 7px; }
.au-acct .btn { margin-top: 14px; width: 100%; pointer-events: none; }

/* the steps: e-mail · company · system */
.au-steps { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); margin-bottom: 28px; }
.au-steps li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.au-steps b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 600; color: var(--muted); }
.au-steps b svg { width: 12px; height: 12px; stroke-width: 2.6; }
.au-steps li.au-now { color: var(--text); font-weight: 600; }
.au-steps li.au-now b { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.au-steps li.au-done b { background: var(--green-tint); border-color: transparent; color: var(--green); }
.au-steps .au-line { width: 22px; height: 1px; background: var(--line-2); }
.au-steps .au-lbl { display: none; }
@media (min-width: 420px) { .au-steps .au-lbl { display: inline; } }

/* words */
.au-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 5vw, 2.55rem); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.au-sub { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.au-trial { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 9px; border-radius: 999px; background: var(--green-tint); color: var(--green); font-size: 13px; font-weight: 600; }
.au-trial svg { width: 15px; height: 15px; stroke-width: 2.4; }
.au-partner { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* the form */
.au-form { display: grid; gap: 14px; margin-top: 28px; position: relative; }
.au-field label, .au-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--text); }
.au-field label a, .au-label a { font-size: 13px; font-weight: 600; color: var(--blue); }
.au-field label span { font-weight: 400; color: var(--muted); }
.au-input { width: 100%; height: 48px; padding: 0 15px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: inherit; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.au-input::placeholder { color: var(--faint); }
.au-input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 15%, transparent); }
.au-input.au-upper { text-transform: uppercase; }
.au-input.au-lower { text-transform: lowercase; }
.au-row { display: flex; align-items: center; gap: 8px; }
.au-row .au-input { flex: 1; min-width: 0; }
.au-row > span { flex: none; font-size: 14px; color: var(--muted); }
.au-hint { margin-top: 7px; min-height: 1rem; font-size: 13px; color: var(--muted); line-height: 1.5; }
.au-hint b { color: var(--text); font-weight: 600; }
.au-hint button { color: var(--blue); font-weight: 600; }
.au-ok { color: var(--green); }
.au-warn { color: var(--orange); }
.au-submit { width: 100%; height: 50px; border-radius: 12px; font-size: 15.5px; }
.au-submit:disabled { opacity: .6; }
.au-errors { padding: 12px 15px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); background: var(--red-tint); color: var(--red); font-size: 14px; }
.au-provider { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font-weight: 600; font-size: 15px; transition: background .15s; }
.au-provider:hover { background: var(--soft); }
.au-or { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--faint); }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.au-fine { font-size: 12.5px; color: var(--muted); line-height: 1.55; text-align: center; }
.au-fine a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.au-alt { margin-top: 22px; font-size: 14px; color: var(--muted); text-align: center; }
.au-alt a { color: var(--text); font-weight: 600; }
.au-alt + .au-alt { margin-top: 8px; }
.au-who { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--panel); font-size: 14px; }
.au-who > span { display: flex; align-items: center; gap: 9px; min-width: 0; }
.au-who > span > span:last-child { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-who button { flex: none; font-size: 13px; font-weight: 600; color: var(--blue); }
.au-link { justify-self: start; font-size: 14px; font-weight: 600; color: var(--blue); }
.au-note { display: flex; gap: 11px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.au-note svg { width: 17px; height: 17px; margin-top: 1px; color: var(--text); }
.au-note b { display: block; color: var(--text); font-weight: 600; margin-bottom: 1px; }
.au-strength { margin-top: 8px; height: 4px; border-radius: 9px; background: var(--panel); overflow: hidden; }
.au-strength i { display: block; height: 100%; width: 0; border-radius: 9px; background: var(--red); transition: width .3s, background-color .3s; }

/* one card in the middle (sign-in, sign-up; owner, 2026-12-02: "login
   should be brought back in to center", mock-up
   https://claude.ai/artifact/NGs4MPcsFZ2NTrzkAk9kF1). On a phone the card
   frame drops away and the form sits on the page. */
.au-centre { position: relative; display: flex; justify-content: center; align-items: flex-start; min-height: calc(100vh - 68px); padding: clamp(28px, 7vh, 72px) max(16px, env(safe-area-inset-right, 0px)) clamp(40px, 8vh, 80px) max(16px, env(safe-area-inset-left, 0px)); }
.au-centre > .au-col { position: relative; max-width: 520px; }
@media (min-width: 640px) {
  .au-centre { background: var(--soft); }
  .au-centre::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1.6px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(60% 55% at 50% 30%, #000, transparent); mask-image: radial-gradient(60% 55% at 50% 30%, #000, transparent); }
  .au-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 44px 48px 38px; box-shadow: 0 1px 2px rgba(29, 43, 63, .05), 0 24px 48px -24px rgba(29, 43, 63, .2); }
}
.au-card .au-title { font-size: clamp(1.65rem, 4.5vw, 2rem); text-align: center; }
.au-card .au-sub { text-align: center; font-size: 15px; margin-top: 10px; }
.au-card .au-steps { justify-content: center; margin-bottom: 22px; }
.au-card .au-form { margin-top: 26px; }
.au-trial-row { display: flex; justify-content: center; }
.au-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-tint); color: var(--blue); margin: 0 auto 18px; }
.au-mark svg { width: 22px; height: 22px; }
.au-under { margin-top: 18px; display: flex; gap: 10px; justify-content: center; font-size: 13px; line-height: 1.5; color: var(--muted); }
.au-under svg { width: 16px; height: 16px; margin-top: 2px; color: var(--text); }
.au-under b { color: var(--text); font-weight: 600; }
.au-ticks { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.au-ticks li { display: inline-flex; align-items: center; gap: 6px; }
.au-ticks svg { width: 14px; height: 14px; color: var(--green); stroke-width: 2.4; }

/* one centred column (password pages) */
.au-center { max-width: 460px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) max(20px, env(safe-area-inset-right, 0px)) clamp(48px, 8vw, 96px) max(20px, env(safe-area-inset-left, 0px)); min-height: calc(100vh - 68px - 70px); }
.au-badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--blue-tint); color: var(--blue); margin-bottom: 20px; }
.au-badge svg { width: 26px; height: 26px; }

/* the small footer */
.au-foot { border-top: 1px solid var(--line); background: var(--bg); }
.au-foot-in { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; max-width: var(--wrap); margin: 0 auto; padding: 22px max(20px, env(safe-area-inset-right, 0px)) 22px max(20px, env(safe-area-inset-left, 0px)); font-size: 13px; color: var(--muted); }
.au-foot ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.au-foot a:hover { color: var(--text); }

/* the step swap (sign-up), only for those who allow motion */
@media (prefers-reduced-motion: no-preference) {
  .au-enter { animation: au-in .4s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes au-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* the centred card has room for slightly taller fields (owner, 2026-12-02:
   "make the box larger, it feels squeezed") */
.au-card .au-input, .au-card .au-provider { height: 50px; }
.au-card .au-submit { height: 52px; }
