/* ════════════════════════════════════════════════════════════════════
   The Muslim Will — Signup (Patriva Navy)
   Self-contained styles for Views/Account/Register.cshtml.
   Edit colours in :root, everything else cascades from there.
   ════════════════════════════════════════════════════════════════════ */

:root {
    --navy-deep: #0D1B32;
    --navy-mid: #162644;
    --gold: #C8A064;
    --gold-deep: #A8844A;
    --gold-light: #DDB97A;
    --warm-white: #F7F5F0;
    --sand: #EDEAE3;
    --stone: #D4D0C8;
    --slate: #6B6760;
    --ink: #2C2A26;
    --success: #1A5C30;
    --error: #B42318;
}

* { box-sizing: border-box; }

body.su-page {
    margin: 0;
    min-height: 100vh;
    background: var(--stone);
    color: var(--ink);
    font-family: 'DM Sans', system-ui, sans-serif;
}

.su-display { font-family: 'Cormorant Garamond', Georgia, serif; }

/* ── Layout shell — true full-screen ── */
.su-wrap { display: flex; min-height: 100vh; min-height: 100dvh; }

.su-frame {
    width: 100%;
    background: var(--warm-white);
    overflow: hidden;
    display: grid;
    grid-template-columns: 5fr 7fr;
}

/* Desktop: lock the frame to the viewport and let the form scroll internally. */
@media (min-width: 861px) {
    .su-frame { height: 100vh; height: 100dvh; }
    .su-form { height: 100vh; height: 100dvh; }
}

@media (max-width: 860px) {
    .su-frame { grid-template-columns: 1fr; min-height: 100vh; min-height: 100dvh; }
    .su-hero { display: none; }
}

/* ── Left hero panel ── */
.su-hero {
    position: relative;
    background: var(--navy-deep);
    color: #fff;
    padding: 56px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.su-hero__geo { position: absolute; inset: 0; pointer-events: none; }

.su-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; }
.su-brand__mark {
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 14px;
    background: rgba(200, 160, 100, .08);
    border: 1px solid rgba(200, 160, 100, .28);
    flex-shrink: 0;
}
.su-brand__name { font-family: 'Cormorant Garamond', serif; font-size: 22px; line-height: 1; letter-spacing: .01em; }
.su-brand__sub { font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }

.su-hero__bottom { position: relative; z-index: 1; margin-top: auto; }
.su-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 20px; }
.su-hero__heading { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 44px; line-height: 1.1; margin: 0 0 22px; }
.su-hero__heading .accent { color: var(--gold-light); }
.su-hero__body { color: rgba(255, 255, 255, .72); font-size: 15px; line-height: 1.65; max-width: 440px; margin: 0; }

/* ── Journey strip ── */
.su-journey { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(200, 160, 100, .2); }
.su-journey__label { font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.su-journey__strip { display: flex; align-items: center; gap: 6px; }
.su-journey__item { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.su-journey__dot {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(200, 160, 100, .15); border: 1px solid rgba(200, 160, 100, .4);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 500; color: var(--gold);
}
.su-journey__text { font-size: 10px; color: rgba(255, 255, 255, .65); white-space: nowrap; }
.su-journey__conn { flex: 1; height: 1px; background: rgba(200, 160, 100, .2); min-width: 6px; margin-top: -12px; }

/* ── Right form panel ── */
.su-form { display: flex; flex-direction: column; background: var(--warm-white); }
.su-topbar { padding: 18px 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--stone); }
.su-topbar__right { display: flex; align-items: center; gap: 12px; }
.su-topbar__text { font-size: 13.5px; color: var(--slate); }

/* Compact brand lockup in the form header — the only branding on mobile,
   where the navy hero is hidden. */
.su-topbar__brand { display: flex; align-items: center; gap: 10px; }
.su-topbar__brand svg { display: block; }
.su-topbar__brand-name { font-family: 'Cormorant Garamond', serif; font-size: 17px; line-height: 1; color: var(--navy-deep); }
@media (min-width: 861px) { .su-topbar__brand { display: none; } }

.su-scroll { flex: 1; overflow-y: auto; padding: 32px 48px; }
.su-card { width: 100%; max-width: 440px; margin: 0 auto; }

.su-greeting { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 12px; }
.su-heading { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 30px; color: var(--navy-deep); margin: 0 0 8px; line-height: 1.2; }
.su-subhead { font-size: 14.5px; color: var(--slate); margin: 0 0 24px; line-height: 1.55; }

/* ── SSO ── */
.su-sso-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.su-sso-btn {
    width: 100%; background: #fff; border: 1px solid var(--stone);
    padding: 11px 18px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 13.5px; font-weight: 500; color: var(--ink); cursor: pointer;
    text-decoration: none; transition: all 150ms ease;
}
.su-sso-btn:hover { border-color: var(--navy-deep); background: var(--warm-white); }
.su-sso-btn[disabled], .su-sso-btn.is-disabled { opacity: .55; cursor: not-allowed; }
.su-sso-btn[disabled]:hover, .su-sso-btn.is-disabled:hover { border-color: var(--stone); background: #fff; }

.su-divider { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.su-divider__line { flex: 1; height: 1px; background: var(--stone); }
.su-divider__text { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }

/* ── Fields ── */
.su-field { margin-bottom: 18px; }
.su-label { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.su-input-wrap { position: relative; }
.su-input {
    width: 100%; background: #fff; border: 1px solid var(--stone); color: var(--ink);
    font-size: 15px; padding: 12px 16px 12px 40px; border-radius: 8px;
    font-family: inherit; transition: border-color 150ms ease, box-shadow 150ms ease;
}
.su-input:focus { outline: none; border-color: var(--navy-deep); box-shadow: 0 0 0 3px rgba(13, 27, 50, .08); }
.su-input::placeholder { color: var(--slate); }
.su-input.has-toggle { padding-right: 44px; }
.su-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--slate); }
.su-input:focus ~ .su-input-icon { color: var(--navy-deep); }
.su-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; padding: 6px; border-radius: 4px; cursor: pointer; color: var(--slate); transition: background 150ms ease; }
.su-toggle:hover { background: var(--warm-white); }
.su-hint { font-size: 11.5px; color: var(--slate); font-style: italic; margin: 6px 0 0; }
.su-field-error { display: block; font-size: 11.5px; color: var(--error); margin-top: 5px; }

/* ── Disclosures ── */
.su-disc { margin-bottom: 20px; }
.su-disc__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.su-disc__label { font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin: 0; }
.su-disc__count { font-size: 11.5px; color: var(--slate); }
.su-disc__count b { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); }
.su-disc__count.is-complete b { color: var(--success); }
.su-disc__progress { height: 3px; background: var(--stone); border-radius: 2px; overflow: hidden; margin-bottom: 14px; }
.su-disc__bar { height: 100%; width: 0; background: var(--gold); transition: width 250ms ease; }

/* Accept-all master row — one click to consent to every acknowledgement,
   cutting the per-item clicking that cluttered the old flow. */
.su-disc__all {
    display: flex; align-items: center; gap: 12px; cursor: pointer;
    padding: 11px 14px; margin-bottom: 12px; border-radius: 8px;
    border: 1px dashed var(--gold-deep); background: #FDF8F0;
    transition: background 150ms ease, border-color 150ms ease;
    user-select: none;
}
.su-disc__all:hover { background: #FBF1E2; }
.su-disc__all.is-all .su-disc__check { background: var(--gold); border-color: var(--gold); }
.su-disc__all.is-all .su-disc__check svg { display: block; }
.su-disc__all-text { font-size: 12.5px; font-weight: 600; color: var(--navy-deep); }

.su-disc__list { display: flex; flex-direction: column; gap: 10px; }

.su-disc__item { border: 1px solid var(--stone); border-radius: 8px; background: #fff; transition: all 200ms ease; }
.su-disc__item.is-accepted { border-color: var(--gold); background: #FDF8F0; }
.su-disc__row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; }
.su-disc__check {
    width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid var(--stone); background: #fff;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer;
    margin-top: 1px; transition: all 150ms ease; color: var(--navy-deep);
}
.su-disc__item.is-accepted .su-disc__check { background: var(--gold); border-color: var(--gold); }
.su-disc__check svg { display: none; }
.su-disc__item.is-accepted .su-disc__check svg { display: block; }
.su-disc__text { flex: 1; min-width: 0; }
.su-disc__title { font-size: 12.5px; font-weight: 500; color: var(--ink); margin: 0; line-height: 1.5; }
.su-disc__body { font-size: 11.5px; color: var(--slate); margin: 8px 0 0; line-height: 1.55; display: none; }
.su-disc__item.is-expanded .su-disc__body { display: block; }
.su-disc__expand { background: none; border: none; padding: 4px; border-radius: 4px; cursor: pointer; flex-shrink: 0; color: var(--slate); transition: background 150ms ease; }
.su-disc__expand:hover { background: var(--warm-white); }
.su-disc__expand .chev-up { display: none; }
.su-disc__item.is-expanded .su-disc__expand .chev-down { display: none; }
.su-disc__item.is-expanded .su-disc__expand .chev-up { display: block; }

/* ── Submit — primary CTA, high prominence ── */
.su-submit {
    width: 100%; font-size: 16.5px; font-weight: 600; padding: 17px 24px; border-radius: 10px; border: none;
    letter-spacing: .01em;
    display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-deep) 100%);
    color: var(--navy-deep); cursor: pointer;
    box-shadow: 0 12px 26px -10px rgba(168, 132, 74, .65);
    transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}
.su-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 32px -10px rgba(168, 132, 74, .75); filter: brightness(1.03); }
.su-submit:active:not(:disabled) { transform: translateY(0); box-shadow: 0 8px 18px -10px rgba(168, 132, 74, .6); }
.su-submit:focus-visible { outline: 3px solid rgba(13, 27, 50, .35); outline-offset: 2px; }
.su-submit svg { width: 16px; height: 16px; }
.su-submit:disabled { background: var(--stone); color: var(--slate); cursor: not-allowed; box-shadow: none; }
.su-encourage { font-size: 12px; color: var(--slate); text-align: center; margin: 0; }
.su-submit:disabled ~ .su-encourage { display: block; }

/* ── Buttons / links ── */
.su-btn-outline {
    background: transparent; color: var(--navy-deep); border: 1px solid var(--navy-deep);
    font-size: 12.5px; font-weight: 500; padding: 8px 14px; border-radius: 8px;
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: none;
    transition: all 150ms ease;
}
.su-btn-outline:hover { background: var(--navy-deep); color: #fff; }
.su-link { background: none; border: none; padding: 0; color: var(--gold-deep); font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; }
.su-link:hover { color: var(--navy-deep); text-decoration: underline; text-underline-offset: 2px; }

.su-footer { padding: 18px 48px; border-top: 1px solid var(--stone); background: var(--sand); }
.su-footer__tagline {
    font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 500;
    color: var(--navy-deep); text-align: center; margin: 0 0 8px;
    letter-spacing: .01em;
}
.su-footer__tagline::before, .su-footer__tagline::after { content: "·"; color: var(--gold-deep); margin: 0 10px; }
.su-footer__text { font-size: 11px; color: var(--slate); text-align: center; line-height: 1.5; margin: 0; }

.su-summary { background: #FDECEA; border: 1px solid #F3C4BE; color: var(--error); border-radius: 8px; padding: 10px 14px; font-size: 12.5px; margin-bottom: 18px; }
.su-summary ul { margin: 0; padding-left: 18px; }

/* ── Fade-in ── */
@keyframes su-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.su-fade { animation: su-fade-up .5s ease-out forwards; }
