

/* Member Gateway: authentication and sign-up routes */
.startup-screen { min-height: 100vh; display: grid; place-content: center; gap: 13px; text-align: center; color: var(--ink); }
.startup-screen p { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 750; }
.startup-mark { display: grid; place-items: center; width: 55px; height: 55px; margin-inline: auto; border-radius: 19px; background: linear-gradient(135deg, var(--orange), var(--red)); color: #fff; box-shadow: 0 12px 26px rgba(239,68,35,.24); font-size: 1.6rem; font-weight: 900; }

.auth-page, .onboarding-page { min-height: 100vh; padding: 18px 2px 38px; }
.auth-back { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: .76rem; font-weight: 850; }
.auth-back:first-letter { font-size: 1.45rem; }
.auth-hero, .onboarding-heading { margin-top: 40px; }
.auth-kicker { margin: 0 0 6px; color: var(--orange); font-size: .67rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.auth-hero h1, .onboarding-heading h1 { margin: 0; color: var(--ink); font-size: 2rem; line-height: 1.04; letter-spacing: -.06em; }
.auth-hero > p:last-child, .onboarding-heading > p:last-child { margin: 10px 0 0; max-width: 340px; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.auth-form, .wizard-card { margin-top: 28px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.form-field + .form-field { margin-top: 15px; }
.form-field label { display: block; margin-bottom: 7px; color: #30415f; font-size: .72rem; font-weight: 850; }
.form-field input, .form-field select { width: 100%; min-height: 49px; padding: 12px 13px; border: 1px solid #d5ddf1; border-radius: 15px; background: #fbfcff; color: var(--ink); outline: 0; font-size: .86rem; }
.form-field input:focus, .form-field select:focus { border-color: rgba(41,72,165,.67); box-shadow: 0 0 0 3px rgba(41,72,165,.13); }
.form-field ::placeholder { color: #9ca4b7; }
.validation-message { display: block; margin-top: 5px; color: var(--red); font-size: .67rem; font-weight: 700; }
.auth-submit, .wizard-next-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 51px; margin-top: 18px; padding: 0 16px; border: 0; border-radius: 16px; background: linear-gradient(135deg, var(--orange), var(--red)); color: #fff; box-shadow: 0 10px 21px rgba(239,68,35,.20); font-size: .84rem; font-weight: 850; cursor: pointer; }
.auth-submit span, .wizard-next-button span { font-size: 1.6rem; line-height: 1; }
.auth-placeholder-message, .wizard-placeholder-message { margin: 14px 0 0; padding: 11px 12px; border-radius: 13px; background: #fff5ed; color: #a94b21; font-size: .69rem; font-weight: 700; line-height: 1.45; }
.auth-switch { margin: 18px 0 0; color: var(--muted); font-size: .74rem; text-align: center; }
.auth-switch a { color: var(--blue); font-weight: 850; }

.wizard-progress { display: flex; gap: 7px; margin: 31px 0 0; }
.wizard-progress-dot { width: 100%; height: 6px; border-radius: 99px; background: #dfe4f0; }
.wizard-progress-dot.is-current { background: linear-gradient(90deg, var(--orange), var(--red)); }
.wizard-progress-dot.is-complete { background: var(--blue); }
.consent-panel { display: flex; gap: 11px; padding: 13px; border-radius: 15px; background: #f1f5ff; }
.consent-icon { display: grid; flex: 0 0 29px; place-items: center; width: 29px; height: 29px; border-radius: 10px; background: linear-gradient(135deg, #4770d3, var(--blue)); color: #fff; font-weight: 900; }
.consent-panel strong { font-size: .82rem; }
.consent-panel p { margin: 4px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.consent-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; color: #43506c; font-size: .74rem; line-height: 1.45; }
.consent-check input { margin-top: 3px; accent-color: var(--blue); }
.wizard-actions { display: flex; gap: 10px; margin-top: 16px; }
.wizard-back-button { min-height: 51px; padding: 0 17px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--blue); font-size: .8rem; font-weight: 850; cursor: pointer; }
.wizard-actions .wizard-next-button { margin-top: 0; }
.wizard-placeholder-message { text-align: center; }

@media (min-width: 560px) {
    .auth-page, .onboarding-page { max-width: 510px; margin-inline: auto; padding-top: 24px; }
}


/* Multi-step member onboarding */
.onboarding-flow { padding-bottom: 124px; }
.wizard-progress-meta { display: flex; align-items: center; justify-content: space-between; margin: 29px 0 0; color: var(--muted); font-size: .68rem; font-weight: 800; }
.wizard-progress-meta span:last-child { color: var(--blue); }
.onboarding-flow .wizard-progress { margin-top: 8px; }
.onboarding-flow .onboarding-heading { margin-top: 29px; }
.onboarding-flow .wizard-card { margin-top: 22px; }
.wizard-validation-message { margin-bottom: 15px; padding: 11px 12px; border-radius: 13px; background: #fff1ed; color: #a54221; font-size: .72rem; font-weight: 750; line-height: 1.4; }
.optional-field { color: var(--muted); font-size: .67rem; font-weight: 650; }
.terms-summary { padding: 15px; border-radius: 17px; background: linear-gradient(135deg, #eff4ff, #fff9ed); border: 1px solid #e4e9f6; }
.terms-summary-kicker { margin: 0 0 5px; color: var(--orange); font-size: .64rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.terms-summary h2 { margin: 0; color: var(--ink); font-size: 1.05rem; letter-spacing: -.035em; }
.terms-summary > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.consent-check-large { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.consent-check-large strong { display: block; margin-bottom: 3px; color: var(--ink); }
.signature-intro { display: flex; gap: 11px; padding: 14px; border-radius: 16px; background: #f2f6ff; }
.signature-intro-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #4770d3, var(--blue)); color: #fff; font-size: 1.1rem; }
.signature-intro strong { color: var(--ink); font-size: .82rem; }
.signature-intro p { margin: 4px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.signature-pad-shell { margin-top: 15px; padding: 9px; border: 2px dashed #ccd8f0; border-radius: 18px; background: #fff; }
.signature-pad { display: block; width: 100%; height: 190px; border-radius: 12px; background: linear-gradient(180deg, #fff, #fafcff); touch-action: none; cursor: crosshair; }
.signature-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; color: var(--muted); font-size: .68rem; }
.signature-clear-button { border: 0; border-radius: 11px; padding: 9px 11px; background: var(--ink); color: #fff; font-size: .69rem; font-weight: 800; cursor: pointer; }
.onboarding-success-card { margin-top: 27px; padding: 25px 19px; border-radius: 23px; background: linear-gradient(135deg, #121936, #2b417e); color: #fff; box-shadow: var(--shadow); }
.onboarding-success-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 17px; background: linear-gradient(135deg, var(--orange), var(--red)); color: #fff; font-size: 1.6rem; font-weight: 900; }
.onboarding-success-card .auth-kicker { margin-top: 18px; color: #ffd74a; }
.onboarding-success-card h1 { margin: 0; color: #fff; font-size: 1.65rem; letter-spacing: -.05em; }
.onboarding-success-card > p:not(.auth-kicker) { margin: 9px 0 0; color: rgba(255,255,255,.72); font-size: .77rem; line-height: 1.55; }
.onboarding-success-card .wizard-next-button { margin-top: 19px; background: #fff; color: var(--ink); box-shadow: none; }

@media (min-width: 560px) {
    .signature-pad { height: 220px; }
}
