:root {
    --blue-950: #390000;
    --blue-900: #520000;
    --blue-800: #6b0000;
    --blue-700: #8b0000;
    --blue-600: #a51b1b;
    --blue-500: #bd3535;
    --blue-100: #f7dddd;
    --burgundy: #8b0000;
    --orange: #ff4c2f;
    --slate-950: #101828;
    --slate-800: #263348;
    --slate-600: #56647a;
    --slate-500: #718096;
    --slate-300: #cbd5e1;
    --slate-200: #e5eaf1;
    --slate-100: #f3f6fa;
    --green: #138a62;
    --red: #c43546;
    --shadow: 0 28px 80px rgba(71, 0, 16, 0.13);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--slate-950);
    background: #f5f1f3;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #f5f1f3; }

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 84% 8%, rgba(139, 0, 0, 0.1), transparent 26rem),
        #f5f1f3;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.account-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(370px, 0.86fr) minmax(620px, 1.14fr);
}

.brand-panel {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 4.6rem);
    color: white;
    background:
        linear-gradient(150deg, rgba(161, 25, 25, 0.98), rgba(57, 0, 0, 0.995) 72%),
        var(--blue-900);
}

.brand-panel::after {
    position: absolute;
    right: -7rem;
    bottom: -8rem;
    width: 26rem;
    height: 26rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 4rem rgba(255,255,255,.025), 0 0 0 8rem rgba(255,255,255,.018);
}

.brand-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    pointer-events: none;
}

.brand-glow-one {
    top: 16%;
    right: -6rem;
    width: 18rem;
    height: 18rem;
    background: radial-gradient(circle, rgba(229, 87, 87, .32), transparent 68%);
}

.brand-glow-two {
    bottom: 8%;
    left: -5rem;
    width: 16rem;
    height: 16rem;
    background: radial-gradient(circle, rgba(255, 76, 47, .12), transparent 70%);
}

.brand-lockup {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: .9rem;
    color: white;
    text-decoration: none;
}

.brand-logo-wrap {
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 1rem;
    background: white;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.brand-logo { width: 100%; height: 100%; object-fit: contain; }
.brand-lockup strong { display: block; font-size: 1.34rem; letter-spacing: -.025em; }
.brand-lockup small { display: block; margin-top: .1rem; color: #f0c7c7; font-size: .8rem; font-weight: 700; letter-spacing: .03em; }

.brand-copy {
    position: relative;
    z-index: 1;
    max-width: 34rem;
    margin: auto 0 2.6rem;
}

.eyebrow {
    margin: 0 0 .8rem;
    color: #f4adad;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.eyebrow.dark { color: var(--blue-700); }

.brand-copy h1 {
    max-width: 31rem;
    margin: 0;
    font-size: clamp(2.35rem, 4vw, 4.35rem);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.brand-description {
    max-width: 34rem;
    margin: 1.45rem 0 0;
    color: #f5d9d9;
    font-size: clamp(1rem, 1.4vw, 1.16rem);
    line-height: 1.7;
}

.benefit-list {
    position: relative;
    z-index: 1;
    display: grid;
    max-width: 34rem;
    margin: 0;
    padding: 0;
    gap: 1rem;
    list-style: none;
}

.benefit-list li { display: flex; align-items: flex-start; gap: .85rem; }
.benefit-list strong { display: block; font-size: .94rem; }
.benefit-list small { display: block; margin-top: .2rem; color: #eac5c5; font-size: .8rem; line-height: 1.45; }

.benefit-check {
    display: grid;
    flex: 0 0 1.6rem;
    height: 1.6rem;
    place-items: center;
    border: 1px solid rgba(255, 207, 207, .46);
    border-radius: 50%;
    color: #ffd0d0;
    background: rgba(255, 208, 208, .1);
    font-size: .78rem;
    font-weight: 900;
}

.brand-footnote {
    position: relative;
    z-index: 1;
    margin: 2.8rem 0 0;
    color: #c38f8f;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.form-panel {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    padding: 2rem clamp(1.5rem, 5vw, 6rem);
}

.back-link {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1.2rem;
    color: var(--slate-600);
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover { color: var(--blue-700); }

.form-card {
    width: min(100%, 51rem);
    padding: clamp(1.5rem, 3.4vw, 3rem);
    border: 1px solid rgba(203, 213, 225, .72);
    border-radius: 1.65rem;
    background: rgba(255,255,255,.96);
    box-shadow: var(--shadow);
}

.steps { display: flex; align-items: center; margin-bottom: 2.4rem; }
.step { display: flex; flex: 0 0 auto; align-items: center; gap: .65rem; color: var(--slate-500); }
.step > span {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid var(--slate-300);
    border-radius: 50%;
    font-size: .76rem;
    font-weight: 900;
    background: white;
}
.step strong { display: block; color: var(--slate-600); font-size: .78rem; }
.step small { display: block; margin-top: .08rem; font-size: .68rem; }
.step.is-current > span, .step.is-done > span { border-color: var(--blue-700); color: white; background: var(--blue-700); box-shadow: 0 5px 15px rgba(139,0,0,.24); }
.step.is-current strong, .step.is-done strong { color: var(--blue-800); }
.step-line { width: clamp(2rem, 7vw, 5.5rem); height: 1px; margin: 0 .8rem; background: var(--slate-200); }
.step-line.is-done { background: var(--blue-600); }

.form-heading { margin-bottom: 1.7rem; }
.form-heading h2, .result-view h2 { margin: 0; color: var(--slate-950); font-size: clamp(1.8rem, 3vw, 2.45rem); letter-spacing: -.045em; }
.form-heading > p:last-child { margin: .65rem 0 0; color: var(--slate-600); font-size: .92rem; line-height: 1.6; }

.field-grid { display: grid; gap: 1rem; margin-bottom: 1.05rem; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field label { display: flex; min-height: 1.25rem; align-items: center; justify-content: space-between; margin-bottom: .45rem; color: var(--slate-800); font-size: .78rem; font-weight: 800; }
.field label span { color: var(--red); }
.field label em { color: var(--slate-500); font-size: .68rem; font-style: normal; font-weight: 600; }
.field input {
    width: 100%;
    height: 2.85rem;
    padding: 0 .85rem;
    border: 1px solid var(--slate-300);
    border-radius: .72rem;
    outline: none;
    color: var(--slate-950);
    background: #fff;
    font-size: .88rem;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input::placeholder { color: #a0aaba; }
.field input:hover { border-color: #9eadc0; }
.field input:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(139,0,0,.13); }
.field.has-error input { border-color: var(--red); background: #fffafb; box-shadow: 0 0 0 3px rgba(196,53,70,.08); }
.field > small { display: block; min-height: .9rem; margin-top: .32rem; color: var(--slate-500); font-size: .68rem; line-height: 1.35; }
.field .field-error, .field-error { color: var(--red); font-weight: 700; }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 4.7rem; }
.password-toggle { position: absolute; top: 50%; right: .35rem; padding: .35rem .5rem; border: 0; border-radius: .45rem; color: var(--blue-700); background: transparent; font-size: .68rem; font-weight: 800; cursor: pointer; transform: translateY(-50%); }
.password-toggle:hover { background: var(--blue-100); }

.password-rules { display: flex; flex-wrap: wrap; margin: -.1rem 0 1.15rem; gap: .45rem; }
.password-rules span { padding: .3rem .55rem; border: 1px solid var(--slate-200); border-radius: 999px; color: var(--slate-500); background: var(--slate-100); font-size: .65rem; font-weight: 700; }
.password-rules span::before { margin-right: .28rem; content: "○"; }
.password-rules span.is-valid { border-color: #b5e5d4; color: #087653; background: #effbf7; }
.password-rules span.is-valid::before { content: "✓"; }

.legal-box { margin: .25rem 0 1.15rem; padding: .9rem 1rem; border: 1px solid var(--slate-200); border-radius: .85rem; background: #f8fafc; }
.check-row { display: flex; align-items: flex-start; gap: .65rem; color: var(--slate-600); font-size: .76rem; line-height: 1.5; cursor: pointer; }
.check-row + .check-row { margin-top: .65rem; }
.check-row input { width: 1rem; height: 1rem; margin: .12rem 0 0; accent-color: var(--blue-700); }
.check-row a { color: var(--blue-700); font-weight: 800; }
.legal-box .field-error { display: block; margin-top: .5rem; font-size: .68rem; }

.primary-button, .secondary-button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: .78rem;
    font-size: .86rem;
    font-weight: 850;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-button { width: 100%; gap: .65rem; border: 0; color: white; background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); box-shadow: 0 12px 24px rgba(139,0,0,.22); }
.primary-button:hover { background: linear-gradient(135deg, var(--blue-500), var(--blue-900)); box-shadow: 0 16px 28px rgba(139,0,0,.28); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .68; transform: none; }
.button-arrow { font-size: 1.05rem; transition: transform .18s ease; }
.primary-button:hover .button-arrow { transform: translateX(3px); }
.secondary-button { width: min(100%, 20rem); border: 1px solid #e2b7b7; color: var(--blue-800); background: #fff5f5; }
.secondary-button:hover { background: var(--blue-100); transform: translateY(-1px); }
.text-button { padding: .6rem; border: 0; color: var(--blue-700); background: transparent; font-size: .76rem; font-weight: 800; cursor: pointer; }
.text-button:hover { text-decoration: underline; }

.security-note { display: flex; align-items: center; justify-content: center; gap: .45rem; margin: .8rem 0 0; color: var(--slate-500); font-size: .68rem; }
.security-note span { color: var(--green); font-size: .5rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.message { margin: -1rem 0 1.2rem; padding: .8rem .95rem; border: 1px solid; border-radius: .72rem; font-size: .78rem; font-weight: 700; line-height: 1.5; }
.message.error { border-color: #f1bdc4; color: #a51f35; background: #fff3f5; }
.message.warning { border-color: #f1d292; color: #855b08; background: #fff9e9; }

.result-view { max-width: 34rem; margin: 1rem auto; text-align: center; }
.result-view > p:not(.eyebrow):not(.result-helper):not(.inline-status) { margin: .8rem auto 0; color: var(--slate-600); font-size: .92rem; line-height: 1.65; }
.result-icon { display: grid; width: 4.7rem; height: 4.7rem; place-items: center; margin: 0 auto 1.35rem; border-radius: 1.35rem; font-size: 2rem; }
.result-icon.mail { color: var(--blue-700); background: linear-gradient(145deg, #fff3f3, #f2d4d4); box-shadow: 0 14px 30px rgba(139,0,0,.14); }
.result-icon.success { color: #087653; background: #e6f8f1; }
.result-icon.error { color: var(--red); background: #fff0f2; }
.result-icon.loading { border: 3px solid var(--blue-100); border-top-color: var(--blue-700); border-radius: 50%; animation: spin .85s linear infinite; }

.info-card { display: grid; grid-template-columns: auto 1fr; align-items: center; margin: 1.55rem 0 1rem; padding: 1rem 1.15rem; gap: .7rem .8rem; border: 1px solid var(--slate-200); border-radius: 1rem; background: #f8fafc; text-align: left; }
.info-card p { margin: 0; color: var(--slate-600); font-size: .76rem; }
.info-number { display: grid; width: 1.45rem; height: 1.45rem; place-items: center; border-radius: 50%; color: white; background: var(--blue-700); font-size: .66rem; font-weight: 900; }
.result-helper { margin: 0 0 1.2rem; color: var(--slate-500); font-size: .7rem; }
.inline-status { min-height: 1rem; margin: .65rem 0 0; color: var(--green); font-size: .72rem; font-weight: 750; }
.result-actions { display: grid; margin-top: 1.5rem; justify-items: center; gap: .45rem; }
.link-button { text-decoration: none; }
.result-actions .primary-button { width: min(100%, 20rem); }

.support-note { width: min(100%, 51rem); margin: 1rem 0 0; color: var(--slate-500); font-size: .72rem; text-align: center; }
.support-note a { color: var(--blue-700); font-weight: 800; }

.login-page .form-card, .login-page .support-note, .login-page .back-link {
    width: min(100%, 32rem);
}
.login-page .form-panel { align-items: center; }
.login-card { padding: clamp(1.7rem, 4vw, 3.2rem); }
.secure-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1.5rem;
    padding: .42rem .7rem;
    border: 1px solid #b5e5d4;
    border-radius: 999px;
    color: #087653;
    background: #effbf7;
    font-size: .67rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.secure-pill span { font-size: .48rem; }
.login-heading { margin-bottom: 1.9rem; }
.login-fields { gap: .9rem; margin-bottom: 1.25rem; }
.account-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    gap: .4rem;
    border-top: 1px solid var(--slate-200);
    color: var(--slate-500);
    font-size: .75rem;
}
.account-switch a { color: var(--blue-700); font-weight: 850; text-decoration: none; }
.account-switch a:hover { text-decoration: underline; }
.recovery-link-row { display: flex; justify-content: flex-end; margin: -0.45rem 0 1.25rem; }
.recovery-link-row a { color: var(--blue-700); font-size: .76rem; font-weight: 800; text-decoration: none; }
.recovery-link-row a:hover { text-decoration: underline; }
.recovery-card .result-view { margin-top: 0; }
.recovery-card .password-rules { margin-top: .2rem; }
.recovery-card .result-actions { margin-top: 1.5rem; }
.login-result { margin: .2rem auto; }
.session-summary {
    display: grid;
    margin: 1.5rem 0 1rem;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: 1rem;
    background: #f8fafc;
    text-align: left;
}
.session-summary > div { padding: .85rem 1rem; }
.session-summary > div + div { border-top: 1px solid var(--slate-200); }
.session-summary span { display: block; color: var(--slate-500); font-size: .65rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.session-summary strong { display: block; margin-top: .25rem; overflow-wrap: anywhere; color: var(--slate-800); font-size: .82rem; }
.coming-next {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding: .85rem .95rem;
    gap: .65rem;
    border: 1px solid #e5c5c5;
    border-radius: .85rem;
    color: var(--blue-900);
    background: #fff7f7;
    text-align: left;
}
.coming-next > span { display: grid; flex: 0 0 1.35rem; height: 1.35rem; place-items: center; border-radius: 50%; color: white; background: var(--blue-700); font-size: .7rem; font-weight: 900; }
.coming-next p { margin: 0; font-size: .72rem; line-height: 1.5; }
.login-result .secondary-button { width: 100%; }

.registration-page .brand-copy {
    margin: clamp(2.8rem, 7vh, 5rem) 0 2.2rem;
}

.registration-page .brand-footnote {
    margin-top: auto;
    padding-top: 2rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
    .account-shell { grid-template-columns: 19rem minmax(0, 1fr); }
    .brand-panel { padding: 2rem; }
    .brand-copy h1 { font-size: 2.6rem; }
    .brand-description { font-size: .94rem; }
}

@media (max-width: 820px) {
    .account-shell { display: block; }
    .brand-panel { min-height: auto; padding: 1.25rem; }
    .brand-copy, .benefit-list, .brand-footnote, .brand-glow { display: none; }
    .brand-panel::after { display: none; }
    .brand-logo-wrap { width: 2.7rem; height: 2.7rem; border-radius: .8rem; }
    .brand-lockup strong { font-size: 1.08rem; }
    .brand-lockup small { font-size: .63rem; }
    .form-panel { min-height: calc(100vh - 5.2rem); justify-content: flex-start; padding: 1.2rem; }
    .back-link { margin: 0 0 1rem; }
    .form-card { padding: 1.35rem; border-radius: 1.25rem; }
    .support-note { margin-bottom: 1rem; }
    .login-page .form-panel { align-items: stretch; }
    .login-page .form-card, .login-page .support-note, .login-page .back-link { width: 100%; }
}

@media (max-width: 620px) {
    .two-columns { grid-template-columns: 1fr; }
    .field-grid { gap: .85rem; margin-bottom: .85rem; }
    .steps { margin-bottom: 1.8rem; }
    .step small { display: none; }
    .step-line { flex: 1; }
    .form-heading h2, .result-view h2 { font-size: 1.75rem; }
    .account-switch { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
