
:root {
    --encore-bg: #f4f6fb;
    --encore-surface: #ffffff;
    --encore-dark: #00024e;
    --encore-text: #171a2f;
    --encore-muted: #687086;
    --encore-border: #dde2ee;
    --encore-primary: #2e3cf1;
    --encore-primary-dark: #0e169d;
    --encore-primary-soft: #edf0ff;
    --encore-cyan: #0197fc;
}

.signup-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(360px, .72fr) minmax(560px, 1.28fr);
}

.signup-brand-panel {
    position: sticky;
    top: 0;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    padding: 54px;
    background:
        radial-gradient(
            circle at 20% 15%,
            rgba(46, 60, 241, .32),
            transparent 30rem
        ),
        linear-gradient(
            155deg,
            #00024e,
            #0e169d 72%,
            #1663ff
        );
    color: #fff;
}

.signup-brand-panel h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(3rem, 5vw, 5.4rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.signup-brand-panel > div:first-child > p:last-child {
    max-width: 540px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.72);
    line-height: 1.7;
}

.signup-brand-panel .eyebrow {
    color: #8fd4ff;
}

.signup-price-note {
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    background: rgba(255,255,255,.07);
}

.signup-price-note span {
    color: rgba(255,255,255,.68);
    font-size: .8rem;
}

.signup-form-panel {
    padding: 48px;
}

.signup-card {
    width: min(820px, 100%);
    margin: 0 auto;
}

.signup-heading {
    margin-bottom: 28px;
}

.signup-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -.045em;
}

.signup-heading > p:last-child {
    max-width: 680px;
    color: var(--encore-muted);
    line-height: 1.65;
}

.signup-form {
    display: grid;
    gap: 24px;
}

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

.signup-grid label {
    display: grid;
    gap: 6px;
}

.signup-grid label.full {
    grid-column: 1 / -1;
}

.signup-grid label > span {
    font-size: .76rem;
    font-weight: 800;
}

.encore-input {
    width: 100%;
    min-height: 49px;
    padding: 0 13px;
    border: 1px solid var(--encore-border);
    border-radius: 11px;
    background: #fff;
    color: var(--encore-text);
    font: inherit;
}

.encore-input:focus {
    border-color: var(--encore-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--encore-primary-soft);
}

.plan-section {
    display: grid;
    gap: 10px;
}

.plan-section h3 {
    margin: 0;
    font-size: .9rem;
}

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

.select-card {
    position: relative;
    display: grid;
    gap: 5px;
    min-height: 112px;
    align-content: center;
    padding: 17px 17px 17px 48px;
    border: 1px solid var(--encore-border);
    border-radius: 14px;
    background: var(--encore-surface);
    cursor: pointer;
}

.select-card:has(input:checked) {
    border-color: var(--encore-primary);
    background: var(--encore-primary-soft);
    box-shadow: inset 0 0 0 1px var(--encore-primary);
}

.select-card input {
    position: absolute;
    top: 20px;
    left: 18px;
}

.select-card strong {
    color: var(--encore-dark);
}

.select-card span {
    color: var(--encore-muted);
    font-size: .75rem;
}

.addon-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--encore-border);
    border-radius: 14px;
    background: #fff;
}

.addon-card > span {
    display: grid;
    gap: 3px;
}

.addon-card small {
    color: var(--encore-muted);
}

.terms-line {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--encore-muted);
    font-size: .75rem;
    line-height: 1.45;
}

.signup-button {
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--encore-primary);
    color: #fff;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.signup-button:hover {
    background: var(--encore-primary-dark);
}

.signup-login-link {
    margin: 22px 0 0;
    color: var(--encore-muted);
    font-size: .8rem;
    text-align: center;
}

.signup-login-link a {
    color: var(--encore-primary);
    font-weight: 850;
}

@media (max-width: 900px) {
    .signup-shell {
        grid-template-columns: 1fr;
    }

    .signup-brand-panel {
        position: static;
        min-height: 340px;
        padding: 32px;
    }

    .signup-brand-panel h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .signup-form-panel {
        padding: 34px 22px 50px;
    }
}

@media (max-width: 620px) {
    .signup-grid,
    .plan-card-grid {
        grid-template-columns: 1fr;
    }

    .signup-grid label.full {
        grid-column: auto;
    }
}

/* =========================================================
   Registration validation + Terms & Conditions modal
   ========================================================= */

.encore-input {
    transition:
        border-color 140ms ease,
        box-shadow 140ms ease,
        background 140ms ease;
}

.encore-input.password-match {
    border-color: #2f9e61;
    box-shadow: 0 0 0 3px rgba(47, 158, 97, .12);
    background: #fbfffc;
}

.terms-line span {
    display: inline;
}

.terms-link-button {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--encore-primary);
    font: inherit;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.terms-link-button:hover,
.terms-link-button:focus-visible {
    color: var(--encore-primary-dark);
}

.terms-modal {
    width: min(760px, calc(100vw - 32px));
    max-height: min(88vh, 900px);
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: transparent;
}

.terms-modal::backdrop {
    background: rgba(7, 10, 35, .62);
    backdrop-filter: blur(4px);
}

.terms-modal-card {
    display: grid;
    max-height: min(88vh, 900px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid var(--encore-border);
    border-radius: 20px;
    background: var(--encore-surface);
    box-shadow: 0 30px 90px rgba(0, 2, 78, .26);
}

.terms-modal-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 64px 18px 24px;
    border-bottom: 1px solid var(--encore-border);
    background:
        linear-gradient(
            145deg,
            rgba(46, 60, 241, .06),
            #fff
        );
}

.terms-modal-header .eyebrow {
    margin: 0 0 5px;
    color: var(--encore-primary);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.terms-modal-header h2 {
    margin: 0;
    color: var(--encore-dark);
    font-size: 1.65rem;
    letter-spacing: -.035em;
}

.terms-effective-date {
    margin: 5px 0 0;
    color: var(--encore-muted);
    font-size: .72rem;
}

.terms-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--encore-muted);
    font-size: 1.45rem;
    cursor: pointer;
}

.terms-modal-close:hover {
    background: var(--encore-primary-soft);
    color: var(--encore-primary-dark);
}

.terms-modal-scroll {
    overflow-y: auto;
    padding: 22px 24px 28px;
    color: var(--encore-muted);
    font-size: .82rem;
    line-height: 1.68;
}

.terms-modal-scroll > p:first-child {
    margin-top: 0;
}

.terms-modal-scroll section {
    margin-top: 22px;
}

.terms-modal-scroll h3 {
    margin: 0 0 6px;
    color: var(--encore-dark);
    font-size: .92rem;
}

.terms-modal-scroll p {
    margin: 0 0 10px;
}

.terms-modal-actions {
    display: flex;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--encore-border);
    background: #fff;
}

.terms-accept-button {
    width: auto;
    min-width: 150px;
    padding: 0 20px;
}

@media (max-width: 620px) {
    .terms-modal {
        width: calc(100vw - 20px);
        max-height: 92vh;
    }

    .terms-modal-card {
        max-height: 92vh;
    }

    .terms-modal-header,
    .terms-modal-scroll,
    .terms-modal-actions {
        padding-left: 18px;
        padding-right: 18px;
    }

    .terms-modal-header {
        padding-right: 58px;
    }

    .terms-accept-button {
        width: 100%;
    }
}
