:root {
    color-scheme: light;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body.cmreg-page {
    min-height: 100vh;
    margin: 0;
    color: #152033;
    background:
        radial-gradient(
            circle at 16% 5%,
            rgba(57, 133, 255, 0.24),
            transparent 31rem
        ),
        radial-gradient(
            circle at 86% 92%,
            rgba(43, 201, 185, 0.13),
            transparent 28rem
        ),
        #0b1322;
}

.cmreg-page button,
.cmreg-page input {
    font: inherit;
}

.cmreg-shell {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 36px;
}

.cmreg-layout {
    display: grid;
    width: min(100%, 1160px);
    grid-template-columns:
        minmax(300px, 0.78fr)
        minmax(520px, 1.22fr);
    align-items: stretch;
    gap: 26px;
}

.cmreg-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow:
        0 32px 90px
        rgba(0, 0, 0, 0.28);
}

.cmreg-info-card {
    display: flex;
    min-height: 650px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 36px;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            rgba(27, 43, 72, 0.98),
            rgba(10, 19, 35, 0.98)
        );
}

.cmreg-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.cmreg-brand-mark {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            #357ef2,
            #1f5fca
        );
    box-shadow:
        0 14px 32px
        rgba(25, 100, 220, 0.35);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.cmreg-brand > span:last-child {
    display: flex;
    flex-direction: column;
}

.cmreg-brand strong {
    font-size: 17px;
}

.cmreg-brand small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.63);
    font-size: 11px;
}

.cmreg-info-content {
    margin: 54px 0;
}

.cmreg-eyebrow {
    display: block;
    color: #5ea1ff;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.cmreg-info-content h1 {
    max-width: 460px;
    margin: 10px 0 0;
    font-size: clamp(31px, 4vw, 48px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.cmreg-info-content > p {
    max-width: 430px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.67);
    font-size: 14px;
    line-height: 1.7;
}

.cmreg-features {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.cmreg-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    line-height: 1.4;
}

.cmreg-features li > span {
    display: grid;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    place-items: center;
    border-radius: 50%;
    color: #70d4c3;
    background: rgba(70, 213, 187, 0.12);
    font-size: 11px;
    font-weight: 900;
}

.cmreg-sandbox-note {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    line-height: 1.5;
}

.cmreg-sandbox-note > span:first-child {
    color: #55d2be;
    font-size: 10px;
}

.cmreg-form-card {
    padding: 34px;
    background: #ffffff;
}

.cmreg-heading h2 {
    margin: 7px 0 0;
    color: #152033;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.14;
    letter-spacing: -0.03em;
}

.cmreg-heading p {
    margin: 10px 0 0;
    color: #6c7789;
    font-size: 13px;
    line-height: 1.6;
}

.cmreg-alert {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 20px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.5;
}

.cmreg-alert-error {
    border-color: #f1b9b9;
    color: #8c2424;
    background: #fff2f2;
}

.cmreg-alert-warning {
    border-color: #efd28d;
    color: #805900;
    background: #fff9e9;
}

.cmreg-alert small {
    margin-top: 3px;
    opacity: 0.75;
}

.cmreg-form {
    margin-top: 24px;
}

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

.cmreg-field {
    min-width: 0;
}

.cmreg-field-wide {
    grid-column: 1 / -1;
}

.cmreg-field > label,
.cmreg-choice-group > legend {
    display: block;
    margin-bottom: 7px;
    color: #354156;
    font-size: 11px;
    font-weight: 800;
}

.cmreg-input-wrap {
    position: relative;
}

.cmreg-input-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    display: grid;
    width: 18px;
    transform: translateY(-50%);
    place-items: center;
    color: #8090a7;
    font-size: 10px;
    font-weight: 850;
    pointer-events: none;
}

.cmreg-input-wrap input {
    width: 100%;
    min-height: 47px;
    padding: 10px 48px 10px 42px;
    border: 1px solid #d8e0ea;
    border-radius: 11px;
    outline: none;
    color: #172033;
    background: #ffffff;
    font-size: 13px;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background 150ms ease;
}

.cmreg-input-wrap input::placeholder {
    color: #a2adbc;
}

.cmreg-input-wrap input:focus {
    border-color: #347de9;
    background: #ffffff;
    box-shadow:
        0 0 0 4px
        rgba(52, 125, 233, 0.12);
}

.cmreg-input-wrap input.is-invalid {
    border-color: #d84949;
    box-shadow:
        0 0 0 4px
        rgba(216, 73, 73, 0.1);
}

.cmreg-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    min-height: 32px;
    transform: translateY(-50%);
    padding: 0 9px;
    border: 0;
    border-radius: 7px;
    color: #526176;
    background: #eef2f7;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.cmreg-field-message {
    display: block;
    min-height: 15px;
    margin-top: 5px;
    color: #c33838;
    font-size: 10px;
}

.cmreg-password-rules {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 5px 10px;
    margin-top: 8px;
}

.cmreg-password-rules span {
    position: relative;
    padding-left: 15px;
    color: #8793a5;
    font-size: 9px;
}

.cmreg-password-rules span::before {
    position: absolute;
    top: 0;
    left: 0;
    content: "○";
}

.cmreg-password-rules span.is-valid {
    color: #208369;
}

.cmreg-password-rules span.is-valid::before {
    content: "✓";
    font-weight: 900;
}

.cmreg-choice-group {
    margin: 19px 0 0;
    padding: 0;
    border: 0;
}

.cmreg-plan-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.cmreg-plan,
.cmreg-billing-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.cmreg-plan > input,
.cmreg-billing-option > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cmreg-plan-content,
.cmreg-billing-option > span {
    display: flex;
    min-height: 74px;
    flex-direction: column;
    justify-content: center;
    padding: 12px;
    border: 1px solid #dce3ec;
    border-radius: 11px;
    color: #263247;
    background: #f8fafc;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background 150ms ease;
}

.cmreg-plan input:checked +
.cmreg-plan-content,
.cmreg-billing-option input:checked +
span {
    border-color: #347de9;
    background: #edf5ff;
    box-shadow:
        0 0 0 3px
        rgba(52, 125, 233, 0.1);
}

.cmreg-plan strong,
.cmreg-billing-option strong {
    font-size: 12px;
}

.cmreg-plan small,
.cmreg-billing-option small {
    margin-top: 4px;
    color: #778397;
    font-size: 9px;
    line-height: 1.4;
}

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

.cmreg-billing-option > span {
    min-height: 64px;
}

.cmreg-submit {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    padding: 11px 16px;
    border: 0;
    border-radius: 11px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #347de9,
            #2466cf
        );
    box-shadow:
        0 13px 26px
        rgba(41, 109, 211, 0.25);
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
    transition:
        transform 150ms ease,
        box-shadow 150ms ease,
        opacity 150ms ease;
}

.cmreg-submit:hover {
    transform: translateY(-1px);
    box-shadow:
        0 17px 31px
        rgba(41, 109, 211, 0.31);
}

.cmreg-submit:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.cmreg-footer {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    color: #7b8799;
    font-size: 11px;
}

.cmreg-footer a {
    color: #246fdc;
    font-weight: 800;
    text-decoration: none;
}

.cmreg-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 980px) {
    .cmreg-shell {
        padding: 24px;
    }

    .cmreg-layout {
        grid-template-columns: 1fr;
        max-width: 720px;
    }

    .cmreg-info-card {
        min-height: auto;
    }

    .cmreg-info-content {
        margin: 42px 0;
    }
}

@media (max-width: 620px) {
    .cmreg-shell {
        align-items: flex-start;
        padding: 14px;
    }

    .cmreg-card {
        border-radius: 18px;
    }

    .cmreg-info-card,
    .cmreg-form-card {
        padding: 23px;
    }

    .cmreg-field-grid,
    .cmreg-plan-grid,
    .cmreg-billing-grid,
    .cmreg-password-rules {
        grid-template-columns: 1fr;
    }

    .cmreg-field-wide {
        grid-column: auto;
    }

    .cmreg-info-content h1 {
        font-size: 34px;
    }
}
