: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: 2.9rem;
    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;
}

.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;
}

.test-mode-panel {
    display: grid;
    gap: 8px;
    border: 1px solid #cddbeb;
    border-radius: 8px;
    padding: 14px;
    background: #f8fbff;
}

.test-mode-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.42;
    font-weight: 650;
}

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 a {
    color: var(--brand);
    font-weight: 800;
}

.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 {
    color: #8993a2;
    background: #e1e7ef;
    cursor: not-allowed;
    opacity: 1;
}

button:disabled:hover {
    color: #8993a2;
    background: #e1e7ef;
}

button:disabled:active {
    transform: none;
}

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-peppol-notice {
    max-width: 34rem;
    border: 1px solid #d6e2ee;
    border-radius: 8px;
    padding: 14px 16px;
    background: #f8fbff;
    text-align: left;
}

.complete-peppol-notice[data-tone="warning"] {
    border-color: #efc56b;
    background: #fff8e8;
}

.complete-peppol-notice strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 0.98rem;
}

.complete-peppol-notice p {
    max-width: none;
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.45;
}

.complete-peppol-notice span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.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%;
    }
}

/* 2026 website rebuild layer */
:root {
    --ink: #111827;
    --muted: #5f6b7a;
    --soft: #f1f5f8;
    --line: rgba(17, 24, 39, 0.12);
    --panel: #ffffff;
    --brand: #c8213b;
    --brand-deep: #8f1728;
    --blue: #2f7898;
    --blue-deep: #17445c;
    --green: #21886e;
    --amber: #c27a22;
    --shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background:
        linear-gradient(90deg, rgba(246, 248, 251, 0.94) 0%, rgba(246, 248, 251, 0.78) 48%, rgba(246, 248, 251, 0.92) 100%),
        url("../../assets/modern-architecture.jpg") center / cover fixed;
}

.page {
    width: min(1220px, calc(100% - 44px));
    grid-template-columns: minmax(300px, 0.74fr) minmax(460px, 1.26fr);
    gap: clamp(26px, 5vw, 56px);
}

.intro,
.registration-shell {
    border-radius: 8px;
}

.intro {
    min-height: 620px;
    padding: 38px;
    background:
        linear-gradient(180deg, rgba(7, 16, 21, 0.94), rgba(16, 24, 32, 0.88)),
        url("../../assets/modern-architecture.jpg") center / cover;
    box-shadow: var(--shadow);
}

.intro::after {
    left: auto;
    right: 28px;
    bottom: 32px;
    width: 120px;
    height: 4px;
    border-radius: 999px;
    background: #8bd0e8;
    transform: none;
}

.brand-lockup {
    grid-template-columns: 64px minmax(0, 1fr);
}

.brand-mark {
    width: 64px;
    height: 64px;
}

.eyebrow {
    letter-spacing: 0;
}

.brand-title {
    max-width: 10ch;
    font-size: 2.65rem;
}

.language-switch {
    border-radius: 8px;
}

.language-button {
    border-radius: 0;
}

.intro-copy {
    font-size: 1.08rem;
}

.registration-shell {
    border: 1px solid rgba(17, 24, 39, 0.1);
    box-shadow: var(--shadow);
}

.progress-wrap {
    padding: 26px 32px 0;
}

.progress {
    gap: 12px;
}

.progress li {
    font-weight: 800;
}

.progress li::before {
    border-radius: 8px;
}

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

.progress li.is-complete::before {
    border-color: var(--green);
    background: var(--green);
}

form {
    padding: 32px;
}

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

h2 {
    color: var(--ink);
    font-size: 2rem;
}

.field-grid {
    gap: 14px;
}

label {
    color: rgba(17, 24, 39, 0.68);
}

input,
select {
    min-height: 48px;
    border-color: rgba(17, 24, 39, 0.14);
    border-radius: 8px;
    background: #fbfdff;
}

input:focus,
select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(47, 120, 152, 0.14);
}

.test-mode-panel,
.complete-peppol-notice {
    border-radius: 8px;
}

button {
    border-radius: 8px;
    background: var(--brand);
    font-weight: 850;
}

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

button.inline-action {
    background: var(--blue);
}

button.inline-action:hover {
    background: var(--blue-deep);
}

button.secondary,
.complete-link {
    background: var(--soft);
}

.check-row a {
    color: var(--blue-deep);
}

.complete-icon,
.complete-link.primary {
    background: var(--green);
}

@media (max-width: 900px) {
    .page {
        width: min(100% - 28px, 760px);
        grid-template-columns: 1fr;
    }

    .intro {
        min-height: auto;
    }
}

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

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

/* Final typography normalization */
.brand-title {
    font-size: 2.65rem;
}

h2 {
    font-size: 2rem;
}

@media (max-width: 900px) {
    .brand-title {
        font-size: 2.35rem;
    }
}

@media (max-width: 620px) {
    .brand-title {
        font-size: 2.05rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* Registration design refresh */
:root {
    --register-page: #eef2f5;
    --register-paper: #ffffff;
    --register-ink: #111827;
    --register-muted: #5f6b7a;
    --register-line: rgba(17, 24, 39, 0.12);
    --register-blue: #2f7898;
    --register-blue-deep: #17445c;
    --register-dark: #111a22;
    --register-red: #c8213b;
    --register-green: #21886e;
    --register-shadow: 0 30px 80px rgba(17, 24, 39, 0.16);
}

body {
    min-height: 100vh;
    color: var(--register-ink);
    background:
        linear-gradient(180deg, rgba(238, 242, 245, 0.82), rgba(238, 242, 245, 0.98) 54%),
        url("/assets/modern-architecture.jpg") center top / cover fixed;
}

.page {
    width: min(1240px, calc(100% - 48px));
    min-height: 100vh;
    grid-template-columns: minmax(310px, 0.72fr) minmax(520px, 1.28fr);
    align-items: stretch;
    gap: 26px;
    padding: 34px 0;
}

.intro {
    min-height: auto;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(7, 16, 21, 0.96), rgba(17, 26, 34, 0.9)),
        url("/assets/modern-architecture.jpg") center / cover;
}

.intro::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(180deg, rgba(17, 26, 34, 0), rgba(17, 26, 34, 0.88));
    pointer-events: none;
}

.intro::after {
    right: 34px;
    bottom: 34px;
    width: 76px;
    height: 4px;
    background: #8bd0e8;
}

.intro-top,
.intro-copy,
.intro-bottom {
    position: relative;
    z-index: 1;
}

.intro-top {
    gap: 18px;
}

.brand-lockup {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
}

.brand-mark {
    width: 58px;
    height: 58px;
}

.brand-title {
    max-width: 12ch;
    margin-top: 6px;
    color: #ffffff;
    font-size: 2.35rem;
}

.intro .eyebrow {
    color: #8bd0e8;
}

.language-switch {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.language-button {
    min-height: 36px;
    font-weight: 850;
}

.back-product {
    display: inline-flex;
    min-height: 38px;
    width: fit-content;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.back-product:hover {
    background: rgba(255, 255, 255, 0.14);
    text-decoration: none;
}

.intro-copy {
    max-width: 21rem;
    margin-top: auto;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
}

.registration-shell {
    border-color: var(--register-line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--register-shadow);
}

.progress-wrap {
    padding: 28px 34px 0;
}

.progress {
    gap: 8px;
}

.progress li {
    gap: 9px;
    border: 1px solid var(--register-line);
    border-radius: 8px;
    padding: 10px;
    background: #f8fafc;
    color: var(--register-muted);
    font-size: 0.82rem;
}

.progress li::before {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #ffffff;
}

.progress li.is-active {
    border-color: rgba(47, 120, 152, 0.34);
    background: rgba(47, 120, 152, 0.08);
}

.progress li.is-active::before {
    border-color: var(--register-blue);
    background: var(--register-blue);
}

.progress li.is-complete {
    border-color: rgba(33, 136, 110, 0.28);
    background: rgba(33, 136, 110, 0.08);
}

form {
    padding: 28px 34px 34px;
}

.form-heading {
    display: grid;
    gap: 6px;
    margin-bottom: 22px;
}

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

h2 {
    margin: 0;
    font-size: 2.15rem;
    line-height: 1.08;
}

.step {
    gap: 16px;
}

.field-grid {
    gap: 14px;
}

label {
    gap: 8px;
    color: rgba(17, 24, 39, 0.68);
    font-weight: 780;
}

input,
select {
    min-height: 50px;
    border-radius: 8px;
    border-color: rgba(17, 24, 39, 0.14);
    background: #fbfdff;
}

input:hover,
select:hover {
    border-color: rgba(47, 120, 152, 0.28);
}

input:focus,
select:focus {
    border-color: var(--register-blue);
    box-shadow: 0 0 0 4px rgba(47, 120, 152, 0.14);
}

.verification-grid {
    gap: 14px;
}

.test-mode-panel,
.complete-peppol-notice {
    border-radius: 8px;
    border-color: rgba(47, 120, 152, 0.18);
    background: #f8fbfd;
}

.check-row {
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 8px;
    padding: 12px;
    background: #f8fafc;
}

.check-row a {
    color: var(--register-blue-deep);
}

.status {
    display: grid;
    align-items: center;
    min-height: 32px;
    margin-top: 18px;
}

.actions {
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    padding-top: 18px;
    margin-top: 8px;
}

button,
.complete-link {
    border-radius: 8px;
}

button {
    min-height: 48px;
    background: var(--register-red);
}

button:hover {
    background: #8f1728;
}

button.inline-action {
    background: var(--register-blue);
}

button.inline-action:hover {
    background: var(--register-blue-deep);
}

button.secondary,
.complete-link {
    color: var(--register-ink);
    background: #eef3f7;
}

button.secondary:hover,
.complete-link:hover {
    background: #dde8ef;
    filter: none;
}

button:disabled,
button:disabled:hover {
    color: #7c8794;
    background: #e5ebf1;
}

.complete-step {
    min-height: 330px;
}

.complete-icon,
.complete-link.primary {
    background: var(--register-green);
}

@media (max-width: 980px) {
    .page {
        width: min(100% - 28px, 760px);
        grid-template-columns: 1fr;
        align-items: start;
    }

    .intro {
        min-height: 320px;
    }

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

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

    .intro,
    .registration-shell {
        border-radius: 8px;
    }

    .intro {
        min-height: auto;
        padding: 24px;
    }

    .brand-lockup {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .brand-mark {
        width: 50px;
        height: 50px;
    }

    .brand-title,
    h2 {
        font-size: 1.85rem;
    }

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

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

    .progress li {
        grid-template-columns: 28px minmax(0, 1fr);
        align-items: center;
    }

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

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

    button,
    .complete-link {
        width: 100%;
    }
}

/* Registration Peppol notice refinement */
.intro .language-switch {
    position: absolute;
    top: 34px;
    right: 34px;
    z-index: 2;
}

.intro-top {
    padding-right: 112px;
    min-width: 0;
}

.intro-bottom {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    margin-top: auto;
    min-width: 0;
}

.intro-bottom .intro-copy {
    margin: 0;
}

.intro-peppol-note {
    display: grid;
    gap: 8px;
    max-width: 25rem;
    min-width: 0;
    border-left: 3px solid #8bd0e8;
    padding: 0 0 0 14px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    line-height: 1.48;
}

.intro-peppol-note p {
    margin: 0;
    overflow-wrap: anywhere;
}

.intro-peppol-note .intro-note-title {
    color: #ffffff;
    font-weight: 850;
}

@media (max-width: 620px) {
    .intro .language-switch {
        top: 20px;
        right: 20px;
    }

    .intro .language-button {
        min-width: 42px;
        padding: 0 10px;
    }

    .intro-top {
        padding-right: 88px;
    }

    .intro-peppol-note {
        max-width: none;
        padding-left: 12px;
        font-size: 0.86rem;
        line-height: 1.42;
    }

    .page {
        width: min(100% - 20px, 370px);
    }

    .intro,
    .registration-shell {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

/* Registration compact spacing */
@media (min-width: 981px) {
    .page {
        min-height: auto;
        align-items: start;
        padding: 32px 0;
    }

    .intro {
        min-height: 0;
        justify-content: flex-start;
        gap: 96px;
        padding: 34px;
    }

    .registration-shell {
        align-self: start;
    }

    .intro-bottom {
        margin-top: 0;
    }

    .intro-copy {
        margin-top: 0;
    }
}
