/* ================================================================================================
   SIGNUP.CSS: the few rules the sign-up screens and the checkout "create an account" pieces need
   that store.css / auth.css do not have (customer-auth overhaul S5, DESIGN.md F.1, C.10).
   Tokens only (--brand, --green, --gold, --ink-soft, --line, --brand-tint); nothing new declared.
   Logical properties only, so every screen mirrors under dir="rtl" with no override section.
   ================================================================================================ */

/* Visually hidden, still read by assistive tech (the date selects' real labels). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.hp-field { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Date of birth: one fieldset, three selects. */
fieldset.dob { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.dob legend { padding: 0; font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
fieldset.dob legend .opt { font-weight: 600; }
.dob-row { display: grid; grid-template-columns: 0.8fr 1.5fr 1fr; gap: 8px; }
.dob-row select { width: 100%; }
.field select[aria-invalid="true"] { border-color: var(--danger); }
.auth-form fieldset.dob + .field { margin-top: 14px; }
.auth-form .field + fieldset.dob { margin-top: 14px; }

/* The two optional boxes (2-step, marketing). */
.opt-row { margin-top: 16px; display: grid; gap: 2px; }
.opt-row .field-help { font-size: 0.78rem; line-height: 1.5; color: var(--ink-soft); padding-inline-start: 27px; }
.opt-row-split { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.opt-row .field-check { align-items: flex-start; min-height: 44px; }
.opt-row .field-check input { margin-top: 2px; }
.chip-rec { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; color: var(--green-deep); background: color-mix(in oklch, var(--green) 14%, white 86%); border: 1px solid color-mix(in oklch, var(--green) 30%, transparent); vertical-align: 1px; }

/* Verify screen: the quiet "resend" button. */
.verify-actions form { margin: 0; }
.linklike { background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; font-size: 0.84rem; font-weight: 700; color: var(--brand); cursor: pointer; text-align: start; }
.linklike:hover:not(:disabled) { text-decoration: underline; }
.linklike:disabled { color: var(--ink-soft); cursor: default; }
.linklike:focus-visible { outline: 3px solid color-mix(in oklch, var(--brand) 45%, white 55%); outline-offset: 2px; border-radius: 6px; }

.auth-lead { margin-bottom: 16px; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.6; }
a.btn.btn-block { text-align: center; text-decoration: none; display: flex; justify-content: center; align-items: center; }

/* Checkout: the unticked "Create an account after this order" box. */
.co-account { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.co-account .field-check { align-items: flex-start; min-height: 44px; }
.co-account .field-check input { margin-top: 2px; }
.co-account .co-account-help { display: block; font-size: 0.78rem; line-height: 1.5; color: var(--ink-soft); padding-inline-start: 27px; }
.co-signin-line { margin-top: 12px; font-size: 0.8rem; color: var(--ink-soft); }
.co-signin-line a { color: var(--brand); font-weight: 700; }
.co-signin-line a:hover { text-decoration: underline; }

/* Order confirmation / payment result: the "Finish creating your account" card. */
.finish-account { margin-top: 16px; border: 1.5px solid color-mix(in oklch, var(--brand) 35%, white 65%); background: var(--brand-tint, #eef4fb); border-radius: 12px; padding: 18px 20px; display: grid; gap: 6px; }
.finish-account h3 { color: var(--brand); font-size: 1rem; font-weight: 800; }
.finish-account p { color: var(--ink-soft); font-size: 0.86rem; line-height: 1.55; }
.finish-account .btn { margin-top: 8px; justify-self: start; }
@media (max-width: 560px) { .finish-account .btn { justify-self: stretch; text-align: center; } }

@media (max-width: 560px) {
    .dob-row { grid-template-columns: 1fr 1.4fr 1fr; }
    .dob-row select { font-size: 1rem; }
}
