/* CV Mojo: the sign-in pages as bare, centred pages (assets/site/v4/auth.css).
   Owner, 2026-11-13, with a picture of another site's plain sign-in screen: "can we have the login / signup a simple
   page". Loaded only by /login, /register, /forgot-password and /reset-password (includes/site/v4/auth/*.php), after
   every other stylesheet. The markup those pages print uses its own au- classes; the few shared ones the site script
   needs (.form-field, .form-status, .form-jobmail-opt, .qc-claim-note) are restyled here under body.au-body.
   The look is the v4 app's, calm: white page, Inter, ink heading, grey line, 48px buttons with 10px corners, one
   colour (the brand blue), hairline inputs with a blue focus ring. No shadows, gradients, shapes or tags.
   Motion: the email form fades up 6px when opened by hand (opacity and transform only), off under reduced motion. */

html.v4s body.au-body {
  --au-ink: #0A0D12; --au-text: #383B41; --au-sub: #5B6170; --au-line: #D0D5DD; --au-rule: #E5E7EB;
  --au-blue: #046BF7; --au-blue-h: #0359D1; --au-blue-t: #E5F0FF; --au-red: #B42318; --au-red-t: #FEF3F2;
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0;
  font-family: var(--v4-font, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif); font-size: 15.5px; font-weight: 400; line-height: 1.55;
  color: var(--au-text); background: #FFFFFF;
}

/* ── The top bar: the logo, and a way out ── */
html.v4s body.au-body .au-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; }
html.v4s body.au-body .au-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--au-ink); text-decoration: none; }
html.v4s body.au-body .au-logo__mark { position: relative; display: grid; place-items: center; flex: none; width: 32px; height: 32px; overflow: hidden; font-size: 13px; font-weight: 700; letter-spacing: 0; color: #FFFFFF; background: var(--au-blue); border-radius: 50%; }
html.v4s body.au-body .au-logo__mark::after { content: ""; position: absolute; right: -6px; bottom: -6px; width: 15px; height: 15px; background: #FFB22F; transform: rotate(45deg); }
html.v4s body.au-body .au-logo:focus-visible, html.v4s body.au-body .au-close:focus-visible { outline: 2px solid var(--au-blue); outline-offset: 3px; border-radius: 8px; }
html.v4s body.au-body .au-close { position: relative; display: grid; place-items: center; flex: none; width: 40px; height: 40px; color: var(--au-sub); text-decoration: none; border-radius: 10px; transition: background-color .15s ease, color .15s ease; }
html.v4s body.au-body .au-close:hover { color: var(--au-ink); background: #F2F4F7; }
html.v4s body.au-body .au-close .au-ic { width: 22px; height: 22px; }
html.v4s body.au-body .au-close::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); right: 0; padding: 5px 9px; font-size: 12.5px; font-weight: 500; line-height: 1.2; white-space: nowrap; color: #FFFFFF; background: var(--au-ink); border-radius: 6px; opacity: 0; transform: translate3d(0, -3px, 0); transition: opacity .15s ease, transform .15s ease; pointer-events: none; }
html.v4s body.au-body .au-close:hover::after, html.v4s body.au-body .au-close:focus-visible::after { opacity: 1; transform: none; }

/* ── The centred block: in the middle on tall screens, from the top on short ones ── */
html.v4s body.au-body main { display: flex; flex: 1; padding: 12px 20px 40px; overflow: visible; }
html.v4s body.au-body .au { width: 100%; max-width: 420px; margin: auto; padding: 8px 0 72px; text-align: center; }
html.v4s body.au-body .au h1 { margin: 0; font-family: inherit; font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: -.022em; text-transform: none; color: var(--au-ink); -webkit-text-stroke: 0; text-wrap: balance; }
html.v4s body.au-body .au-lede { margin: 8px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--au-sub); text-wrap: pretty; }
html.v4s body.au-body .au-lede strong { font-weight: 600; color: var(--au-ink); overflow-wrap: anywhere; }
html.v4s body.au-body .au-ic { flex: none; width: 20px; height: 20px; }

/* The ways in: big plain buttons */
html.v4s body.au-body .au-ways { display: grid; gap: 12px; margin-top: 28px; }
html.v4s body.au-body .au-way { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 18px; font: inherit; font-size: 15.5px; font-weight: 600; line-height: 1.2; color: var(--au-ink); background: #FFFFFF; border: 1px solid var(--au-line); border-radius: 10px; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
html.v4s body.au-body .au-way:hover { background: #F9FAFB; border-color: #98A2B3; }
html.v4s body.au-body .au-way:focus-visible, html.v4s body.au-body .au-btn:focus-visible { outline: 2px solid var(--au-blue); outline-offset: 3px; }
html.v4s body.au-body .au-way svg { flex: none; width: 20px; height: 20px; }
html.v4s body.au-body .au-way--email { color: #FFFFFF; background: var(--au-blue); border-color: var(--au-blue); }
html.v4s body.au-body .au-way--email:hover { background: var(--au-blue-h); border-color: var(--au-blue-h); }
html.v4s body.au-body .au-way[disabled], html.v4s body.au-body .au-way.is-loading, html.v4s body.au-body .au-btn[disabled], html.v4s body.au-body .au-btn.is-loading { opacity: .7; cursor: progress; }

/* The email form: closed behind its button once the page's script is running; open on request, with ?next= or a
   message, and always without script */
html.v4s body.au-body .au-email { margin-top: 12px; text-align: left; }
html.v4s body.au-body .au-box.au-ready:not(.is-open) .au-email { display: none; }
html.v4s body.au-body .au-box:not(.au-ready) .au-way--email, html.v4s body.au-body .au-box.is-open .au-way--email { display: none; }
html.v4s body.au-body .au-box.is-opened .au-email { animation: au-in .24s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes au-in { from { opacity: 0; transform: translate3d(0, 6px, 0); } to { opacity: 1; transform: none; } }
html.v4s body.au-body .au-box.is-open .au-email, html.v4s body.au-body .au-box:not(.au-ready) .au-email { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--au-rule); }
html.v4s body.au-body .au-box > form { margin-top: 28px; text-align: left; }

/* Fields */
html.v4s body.au-body .au-stack { display: grid; gap: 16px; }
html.v4s body.au-body .au .form-field { display: flex; flex-direction: column; gap: 6px; }
html.v4s body.au-body .au .form-field label, html.v4s body.au-body .au-row label { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--au-ink); }
html.v4s body.au-body .au-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
html.v4s body.au-body .au-row a { font-size: 13.5px; font-weight: 500; color: var(--au-blue); text-decoration: none; }
html.v4s body.au-body .au-row a:hover, html.v4s body.au-body .au-foot a:hover, html.v4s body.au-body .au-terms a:hover, html.v4s body.au-body .au-pick a:hover { color: var(--au-blue-h); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
html.v4s body.au-body .au .form-field input { width: 100%; min-height: 48px; padding: 0 14px; font: inherit; font-size: 16px; font-weight: 400; line-height: 1.4; color: var(--au-ink); background: #FFFFFF; border: 1px solid var(--au-line); border-radius: 10px; box-shadow: none; outline: 0; transition: border-color .15s ease, box-shadow .15s ease; }
html.v4s body.au-body .au .form-field input:hover { border-color: #98A2B3; }
html.v4s body.au-body .au .form-field input:focus { border-color: var(--au-blue); box-shadow: 0 0 0 3px var(--au-blue-t); }
html.v4s body.au-body .au .form-field.has-error input { border-color: var(--au-red); }
html.v4s body.au-body .au .form-field.has-error input:focus { box-shadow: 0 0 0 3px #FEE4E2; }
html.v4s body.au-body .au-hint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--au-sub); }

/* The main button */
html.v4s body.au-body .au-actions { margin-top: 20px; }
html.v4s body.au-body .au-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 18px; font: inherit; font-size: 15.5px; font-weight: 600; line-height: 1.2; color: #FFFFFF; text-decoration: none; background: var(--au-blue); border: 1px solid var(--au-blue); border-radius: 10px; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
html.v4s body.au-body .au-btn:hover { color: #FFFFFF; background: var(--au-blue-h); border-color: var(--au-blue-h); }

/* A message in the form: red with a warning mark for a problem, plain for good news. site.js sets the class. */
html.v4s body.au-body .au .form-status { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 11px 14px; font-size: 14.5px; font-weight: 500; line-height: 1.45; color: var(--au-red); background: var(--au-red-t); border-radius: 10px; }
html.v4s body.au-body .au .form-status[hidden] { display: none; }
html.v4s body.au-body .au .form-status::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5'/%3E%3Cpath d='M12 16.5v.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5'/%3E%3Cpath d='M12 16.5v.01'/%3E%3C/svg%3E") center / contain no-repeat; }
html.v4s body.au-body .au .form-status.is-ok, html.v4s body.au-body .au .form-status.is-success { color: #05603A; background: #ECFDF3; }
html.v4s body.au-body .au .form-status.is-ok::before, html.v4s body.au-body .au .form-status.is-success::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.5 3 3 5-6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.5 3 3 5-6'/%3E%3C/svg%3E"); }

/* The line that switches between signing in and signing up, and the small print */
html.v4s body.au-body .au-foot { margin: 28px 0 0; font-size: 15px; color: var(--au-sub); }
html.v4s body.au-body .au-foot a, html.v4s body.au-body .au-terms a, html.v4s body.au-body .au-pick a { font-weight: 500; color: var(--au-blue); text-decoration: none; }
html.v4s body.au-body .au-terms { margin-top: 20px; text-align: center; }
html.v4s body.au-body .au-terms + .au-foot { margin-top: 14px; }

/* Sign up: the weekly jobs email notice and its opt-out (one by each way of signing up; the one under the buttons
   steps aside while the email form, which carries its own, is showing) */
html.v4s body.au-body .au-gnote { margin-top: 14px; }
html.v4s body.au-body .au-box:not(.au-ready) .au-gnote, html.v4s body.au-body .au-box.is-open .au-gnote { display: none; }
html.v4s body.au-body .au .form-jobmail { margin: 14px 0 0; text-align: center; }
html.v4s body.au-body .au-gnote .form-jobmail { margin-top: 0; }
html.v4s body.au-body .au .form-jobmail-opt { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--au-sub); cursor: pointer; }
html.v4s body.au-body .au .form-jobmail-opt input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--au-blue); cursor: pointer; }

/* Sign up: a waiting CV check to save, and a design picked on the templates page */
html.v4s body.au-body .au .qc-claim-note { margin: 20px 0 0; padding: 12px 14px; font-size: 14.5px; line-height: 1.5; text-align: left; color: #062C66; background: var(--au-blue-t); border-radius: 10px; }
html.v4s body.au-body .au .qc-claim-note[hidden] { display: none; }
html.v4s body.au-body .au .qc-claim-note b { display: block; font-weight: 600; }
html.v4s body.au-body .au-pick { display: flex; align-items: center; gap: 14px; margin: 20px 0 0; padding: 12px; text-align: left; background: #F6F7F9; border-radius: 12px; }
html.v4s body.au-body .au-pick img { flex: none; width: 64px; height: auto; border: 1px solid var(--au-rule); border-radius: 6px; }
html.v4s body.au-body .au-pick p { display: grid; gap: 1px; margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--au-sub); }
html.v4s body.au-body .au-pick__l { font-size: 12.5px; }
html.v4s body.au-body .au-pick b { font-size: 15px; font-weight: 600; color: var(--au-ink); }
html.v4s body.au-body .au-pick a { margin-top: 4px; font-size: 13.5px; }

/* Sign up: the account has been made */
html.v4s body.au-body .au-done[hidden] { display: none; }
html.v4s body.au-body .au-done-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; color: var(--au-blue); background: var(--au-blue-t); border-radius: 50%; }
html.v4s body.au-body .au-done-ic .au-ic { width: 26px; height: 26px; stroke-width: 2.2; }
html.v4s body.au-body .au-done h2 { margin: 0; font-family: inherit; font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; text-transform: none; color: var(--au-ink); -webkit-text-stroke: 0; }
html.v4s body.au-body .au-steps { display: grid; gap: 8px; margin: 22px 0; padding: 16px 18px 16px 38px; font-size: 15px; line-height: 1.5; text-align: left; color: var(--au-text); background: #F6F7F9; border-radius: 12px; }
html.v4s body.au-body .au-steps li { padding-left: 4px; }
html.v4s body.au-body .au-links { display: flex; justify-content: center; gap: 22px; margin-top: 18px; }
html.v4s body.au-body .au-links button { padding: 4px 0; font: inherit; font-size: 14px; font-weight: 500; color: var(--au-blue); background: none; border: 0; cursor: pointer; }
html.v4s body.au-body .au-links button:hover { color: var(--au-blue-h); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
html.v4s body.au-body .au-links button[disabled] { color: var(--au-sub); text-decoration: none; cursor: default; }
html.v4s body.au-body .au-done > .au-hint { margin-top: 10px; min-height: 20px; }

@media (max-width: 640px) {
  html.v4s body.au-body .au-top { padding: 14px 20px; }
  html.v4s body.au-body main { padding: 4px 20px 32px; }
  html.v4s body.au-body .au { margin: 0 auto auto; padding: 20px 0 40px; }
  html.v4s body.au-body .au h1 { font-size: 26px; }
  html.v4s body.au-body .au-ways { margin-top: 24px; }
}
@media (max-height: 720px) {
  html.v4s body.au-body .au { margin-top: 0; padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html.v4s body.au-body .au-box.is-opened .au-email { animation: none; }
  html.v4s body.au-body .au-close, html.v4s body.au-body .au-close::after, html.v4s body.au-body .au-way, html.v4s body.au-body .au-btn, html.v4s body.au-body .au .form-field input { transition: none; }
}
@media print {
  html.v4s body.au-body .au-close { display: none; }
}
