:root {
    color-scheme: light;
    --ink: #202733;
    --muted: #657080;
    --soft: #eef2f6;
    --line: #d7dee8;
    --panel: #ffffff;
    --brand: #c8213b;
    --brand-deep: #801927;
    --blue: #255f85;
    --green: #158269;
    --amber: #b27719;
    --shadow: 0 18px 50px rgba(24, 34, 48, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(32, 39, 51, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(32, 39, 51, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(247, 249, 252, 0.9), rgba(247, 249, 252, 0.9)),
        url("../../assets/modern-architecture.jpg") center / cover;
    background-size: 40px 40px, 40px 40px, auto, cover;
}

.page {
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
    align-items: center;
    gap: 34px;
    padding: 42px 0;
}

.intro {
    min-height: 640px;
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    background: #222936;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.intro::after {
    content: "";
    position: absolute;
    left: -18%;
    right: -22%;
    bottom: 80px;
    height: 180px;
    background: var(--brand);
    transform: rotate(-7deg);
}

.intro-top {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 22px;
}

.brand-lockup {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.brand-mark {
    width: 72px;
    height: 72px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.24));
}

.brand-copy {
    min-width: 0;
}

.eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.brand-title {
    margin: 8px 0 0;
    max-width: 8.5ch;
    font-size: clamp(2.55rem, 3.15vw, 3.2rem);
    line-height: 1;
    overflow-wrap: normal;
}

.language-switch {
    display: inline-flex;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.language-button {
    min-width: 48px;
    min-height: 34px;
    border-radius: 0;
    padding: 0 13px;
    color: rgba(255, 255, 255, 0.78);
    background: transparent;
    font-size: 0.86rem;
}

.language-button:hover,
.language-button.is-active {
    color: var(--ink);
    background: #ffffff;
}

.back-product {
    width: fit-content;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.back-product:hover {
    color: #ffffff;
    text-decoration: underline;
}

.intro-copy {
    position: relative;
    z-index: 1;
    max-width: 24rem;
    margin: auto 0 0;
    font-size: 1.18rem;
    line-height: 1.5;
}

.trial-strip {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trial-strip span {
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    font-weight: 700;
}

.registration-shell {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.progress-wrap {
    padding: 24px 30px 0;
}

.progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.progress li {
    min-width: 0;
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 750;
}

.progress li::before {
    content: attr(data-step-indicator);
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #ffffff;
}

.progress li.is-active,
.progress li.is-complete {
    color: var(--ink);
}

.progress li.is-active::before {
    color: #ffffff;
    border-color: var(--brand);
    background: var(--brand);
}

.progress li.is-complete::before {
    content: "\2713";
    color: #ffffff;
    border-color: var(--green);
    background: var(--green);
}

form {
    padding: 30px;
}

.form-heading {
    margin-bottom: 24px;
}

.form-heading .eyebrow {
    color: var(--brand);
}

h2 {
    margin: 6px 0 0;
    font-size: 1.9rem;
    line-height: 1.15;
}

.step {
    display: none;
    gap: 17px;
}

.step.is-active {
    display: grid;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.93rem;
    font-weight: 700;
}

input,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 12px;
    color: var(--ink);
    background: #ffffff;
    font: inherit;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus,
select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(200, 33, 59, 0.14);
}

input[readonly] {
    color: var(--muted);
    background: var(--soft);
}

.verification-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

button.inline-action {
    min-width: 132px;
    color: #ffffff;
    background: var(--blue);
}

button.inline-action:hover {
    background: #1d4c6b;
}

.check-row {
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 10px;
    color: var(--ink);
    font-weight: 650;
}

.check-row input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--brand);
}

.password-meter {
    height: 6px;
    margin-top: -6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--soft);
}

.password-meter span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--brand);
    transition: width 160ms ease, background-color 160ms ease;
}

.password-meter span[data-score="3"],
.password-meter span[data-score="4"] {
    background: var(--amber);
}

.password-meter span[data-score="5"] {
    background: var(--green);
}

.status {
    min-height: 24px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.status[data-tone="error"] {
    color: var(--brand-deep);
}

.status[data-tone="pending"] {
    color: var(--blue);
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

button {
    min-width: 148px;
    min-height: 46px;
    border: 0;
    border-radius: 6px;
    padding: 0 18px;
    color: #ffffff;
    background: var(--brand);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 150ms ease, background-color 150ms ease;
}

button:hover {
    background: var(--brand-deep);
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    cursor: wait;
    opacity: 0.68;
}

button.secondary {
    color: var(--ink);
    background: var(--soft);
}

button.secondary:hover {
    background: #dce4ee;
}

[hidden] {
    display: none !important;
}

.complete-step {
    min-height: 320px;
    place-items: center;
    align-content: center;
    text-align: center;
}

.complete-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--green);
    font-size: 2.5rem;
    font-weight: 900;
}

.complete-step p {
    max-width: 24rem;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.5;
}

.complete-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

.complete-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 0 18px;
    color: var(--ink);
    background: var(--soft);
    font-weight: 800;
    text-decoration: none;
}

.complete-link.primary {
    color: #ffffff;
    background: var(--brand);
}

.complete-link:hover {
    filter: brightness(0.96);
}

@media (max-width: 900px) {
    .page {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0;
    }

    .intro {
        min-height: auto;
        gap: 34px;
        padding: 28px;
    }

    .brand-title {
        max-width: none;
        font-size: 2.8rem;
    }
}

@media (max-width: 620px) {
    .page {
        width: min(100% - 20px, 520px);
    }

    .progress-wrap,
    form {
        padding-left: 20px;
        padding-right: 20px;
    }

    .progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .verification-grid {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-direction: column-reverse;
    }

    button {
        width: 100%;
    }

    .complete-links {
        display: grid;
        width: 100%;
    }
}
