/**
 * Public /Register page — TAAX Pro light registration
 * Colors and type match the shared white design system (pricing-pages.css).
 */

.reg-page {
    --reg-teal: #00a98f;
    --reg-teal-hover: #009781;
    --reg-teal-deep: #007d6b;
    --reg-teal-soft: #eaf9f5;
    --reg-navy: #10233d;
    --reg-logo: #103c86;
    --reg-muted: #63758b;
    --reg-border: #d8e5ec;
    --reg-bg: #f5f8fa;
    --reg-card: #ffffff;
    --reg-info: #eef6fa;
    --reg-star: #f6a800;
    --reg-radius-panel: 22px;
    --reg-radius-card: 12px;
    --reg-radius-btn: 10px;
    --reg-radius-input: 9px;

    margin: 0;
    min-height: 100vh;
    background: var(--reg-bg);
    color: var(--reg-navy);
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
}

.reg-main a {
    color: inherit;
}

.reg-page .grecaptcha-badge {
    visibility: visible !important;
    z-index: 9999;
}

/* ---------------------------------------------------------------------------
   Top nav
--------------------------------------------------------------------------- */

.reg-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 64px;
    background: var(--reg-card);
}

.reg-logo {
    color: var(--reg-logo);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.reg-logo:hover {
    color: var(--reg-logo);
    text-decoration: none;
}

.reg-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.reg-nav-actions span {
    color: var(--reg-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.reg-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 38px;
    border: 1px solid var(--reg-border);
    border-radius: var(--reg-radius-btn);
    background: var(--reg-card);
    color: var(--reg-navy);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.reg-signin:hover {
    color: var(--reg-navy);
    background: var(--reg-bg);
    text-decoration: none;
}

/* ---------------------------------------------------------------------------
   Main two-column stage
--------------------------------------------------------------------------- */

.reg-main {
    display: grid;
    grid-template-columns: minmax(280px, 550px) minmax(320px, 726px);
    gap: 36px;
    justify-content: center;
    align-items: start;
    max-width: 1440px;
    margin: 0 auto;
    padding: 110px 64px 64px;
}

.reg-value,
.reg-card {
    min-height: 724px;
    border-radius: var(--reg-radius-panel);
    overflow: hidden;
}

/* ---------------------------------------------------------------------------
   Left value panel
--------------------------------------------------------------------------- */

.reg-value {
    align-self: start;
    display: flex;
    flex-direction: column;
    height: max-content;
    min-height: 724px;
    padding: 38px;
    background: var(--reg-teal-soft);
}

.reg-kicker {
    margin: 0 0 12px;
    color: var(--reg-teal-deep);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
}

.reg-kicker--trial {
    font-size: calc(11px + 3pt);
}

.reg-value-title {
    margin: 0 0 16px;
    max-width: 464px;
    color: var(--reg-navy);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.18;
}

.reg-value-copy {
    margin: 0 0 36px;
    max-width: 458px;
    color: var(--reg-muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
}

.reg-includes {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.reg-includes li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 22px;
    color: var(--reg-navy);
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
}

.reg-includes li:last-child {
    margin-bottom: 0;
}

.reg-check {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    overflow: clip;
}

.reg-check img {
    display: block;
    width: 100%;
    height: 100%;
}

.reg-check span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--reg-teal-deep);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.reg-trust,
.reg-quote {
    padding: 16px 20px;
    border: 1px solid var(--reg-border);
    border-radius: var(--reg-radius-card);
    background: var(--reg-card);
}

.reg-trust {
    margin-top: auto;
}

.reg-stars {
    margin: 0 0 6px;
    color: var(--reg-star);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
}

.reg-trust-copy {
    margin: 0;
    color: var(--reg-navy);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.reg-quote {
    margin-top: 22px;
}

.reg-quote p {
    margin: 0 0 12px;
    color: var(--reg-navy);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.reg-quote cite {
    display: block;
    color: var(--reg-muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.3;
}

/* ---------------------------------------------------------------------------
   Right form card
--------------------------------------------------------------------------- */

.reg-card {
    padding: 33px 41px 28px;
    border: 1px solid var(--reg-border);
    background: var(--reg-card);
}

.reg-card-title {
    margin: 0 0 8px;
    color: var(--reg-navy);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.reg-card-copy {
    margin: 0 0 24px;
    color: var(--reg-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.reg-signup-label {
    margin: 0 0 8px;
    color: var(--reg-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
}

.reg-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.reg-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--reg-border);
    border-radius: var(--reg-radius-btn);
    background: var(--reg-card);
    color: var(--reg-navy);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.reg-social-btn:hover {
    background: var(--reg-bg);
    color: var(--reg-navy);
    text-decoration: none;
}

.reg-social-btn img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.reg-social-btn i {
    width: 18px;
    color: #1877f2;
    font-size: 16px;
    line-height: 1;
    text-align: center;
}

.reg-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    color: var(--reg-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}

.reg-or::before,
.reg-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--reg-border);
}

.reg-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #f1c0c0;
    border-radius: 10px;
    background: #fff5f5;
    color: #9b1c1c;
}

.reg-alert h6 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
}

.reg-alert ol {
    margin: 0;
    padding-left: 18px;
    list-style: decimal;
}

.reg-alert li {
    margin-bottom: 4px;
    font-size: 12px;
}

.reg-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 16px;
}

.reg-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.reg-field label {
    margin: 0 0 6px;
    color: var(--reg-navy);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.reg-field .reg-input,
.reg-field select.reg-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--reg-border);
    border-radius: var(--reg-radius-input);
    background: var(--reg-card);
    color: var(--reg-navy);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 46px;
    box-shadow: none;
    appearance: none;
}

.reg-field .reg-input::placeholder {
    color: var(--reg-muted);
    opacity: 1;
}

.reg-field .reg-input:focus,
.reg-field select.reg-input:focus {
    outline: none;
    border-color: var(--reg-teal);
    box-shadow: 0 0 0 3px rgba(0, 169, 143, 0.12);
}

.reg-field .reg-input.is-invalid {
    border-color: #dc3545;
}

.reg-field .invalid-feedback {
    display: block;
    margin-top: 4px;
    color: #dc3545;
    font-size: 11px;
}

.reg-select-wrap,
.reg-password-wrap {
    position: relative;
}

.reg-select-wrap .reg-input {
    padding-right: 36px;
}

.reg-select-caret {
    position: absolute;
    top: 50%;
    right: 12px;
    color: var(--reg-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-50%);
}

.reg-password-wrap .reg-input {
    padding-right: 42px;
}

.reg-password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 46px;
    border: 0;
    background: transparent;
    color: var(--reg-muted);
    cursor: pointer;
}

.reg-password-toggle:focus {
    outline: none;
}

.reg-hint {
    margin: 6px 0 0;
    color: var(--reg-muted);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.3;
}

.reg-referral-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 12px;
}

.reg-referral-row > span {
    color: var(--reg-navy);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.reg-switch {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.reg-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.reg-switch-track {
    position: relative;
    display: block;
    width: 38px;
    height: 22px;
    border-radius: 11px;
    background: var(--reg-info);
    transition: background 0.15s ease;
}

.reg-switch-track img {
    position: absolute;
    top: 3px;
    left: 3px;
    display: block;
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 1px 1px rgba(16, 35, 61, 0.16));
    transition: transform 0.15s ease;
}

.reg-switch input:checked + .reg-switch-track {
    background: var(--reg-teal);
}

.reg-switch input:checked + .reg-switch-track img {
    transform: translateX(16px);
}

.reg-switch input:focus-visible + .reg-switch-track {
    box-shadow: 0 0 0 3px rgba(0, 169, 143, 0.18);
}

.reg-referral-input {
    margin: 0 0 18px;
    padding: 14px 16px 16px;
    border: 1px solid var(--reg-border);
    border-radius: 12px;
    background: var(--reg-info);
}

.reg-referral-input.d-none {
    display: none !important;
}

.reg-referral-input .reg-field .reg-input {
    background: var(--reg-card);
}

.reg-referral-input .reg-field .reg-input.is-valid {
    border-color: var(--reg-teal);
}

.reg-referral-status {
    margin: 8px 0 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.reg-referral-status.is-valid {
    color: var(--reg-teal-deep);
}

.reg-referral-status.is-invalid {
    color: #c0392b;
}

.reg-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    cursor: pointer;
}

.reg-terms input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.reg-terms-box {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 1px solid var(--reg-border);
    border-radius: 4px;
    background: var(--reg-card);
}

.reg-terms input:checked + .reg-terms-box {
    border-color: var(--reg-teal);
    background: var(--reg-teal);
}

.reg-terms input:checked + .reg-terms-box::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.reg-terms input:focus-visible + .reg-terms-box {
    box-shadow: 0 0 0 3px rgba(0, 169, 143, 0.18);
}

.reg-terms-copy {
    color: var(--reg-navy);
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}

.reg-terms-copy a {
    color: inherit;
    font-weight: 500;
    text-decoration: underline;
}

.reg-terms-copy a:hover {
    text-decoration: none;
}

.reg-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    margin: 0 0 14px;
    border: 0;
    border-radius: var(--reg-radius-btn);
    background: var(--reg-teal);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.reg-submit:hover,
.reg-submit:focus {
    background: var(--reg-teal-hover);
    color: #fff;
}

.reg-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.reg-secure {
    margin: 0 0 8px;
    color: var(--reg-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

.reg-recaptcha {
    margin: 0;
    color: var(--reg-muted);
    font-size: 9px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

.reg-recaptcha a {
    color: inherit;
    text-decoration: underline;
}

.reg-recaptcha a:hover {
    text-decoration: none;
}

.reg-trust-inline {
    display: none;
    margin: 0 0 12px;
    color: var(--reg-navy);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.reg-trust-inline .reg-stars {
    margin: 0 6px 0 0;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.reg-only-mobile {
    display: none !important;
}

/* ---------------------------------------------------------------------------
   Tablet: stack the desktop cards
--------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .reg-nav {
        padding: 0 24px;
    }

    .reg-main {
        grid-template-columns: 1fr;
        padding: 100px 20px 40px;
    }

    .reg-value,
    .reg-card {
        min-height: 0;
    }
}

/* ---------------------------------------------------------------------------
   Mobile — Figma 390 frame
--------------------------------------------------------------------------- */

@media (max-width: 767px) {
    .reg-only-desktop {
        display: none !important;
    }

    .reg-only-mobile {
        display: revert !important;
    }

    span.reg-only-mobile {
        display: inline !important;
    }

    p.reg-only-mobile,
    ul.reg-only-mobile,
    div.reg-only-mobile {
        display: block !important;
    }

    .reg-nav {
        height: 62px;
        padding: 0 16px;
    }

    .reg-logo {
        font-size: 20px;
    }

    .reg-page a.reg-signin {
        width: auto;
        height: auto;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--reg-teal-deep);
        font-size: 12px;
        font-weight: 600;
    }

    .reg-page a.reg-signin:hover {
        background: transparent;
        color: var(--reg-teal);
    }

    .reg-main {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 84px 16px 32px;
    }

    .reg-value {
        padding: 0;
        background: transparent;
        border-radius: 0;
        overflow: visible;
    }

    .reg-value .reg-kicker {
        margin-bottom: 8px;
        font-size: 10px;
    }

    .reg-value .reg-kicker--trial {
        font-size: calc(10px + 3pt);
    }

    .reg-value-title {
        margin-bottom: 12px;
        max-width: none;
        font-size: 27px;
        line-height: 1.22;
    }

    .reg-trust-inline {
        display: block !important;
    }

    .reg-value-copy {
        margin-bottom: 18px;
        max-width: none;
        font-size: 13px;
        line-height: 1.4;
    }

    .reg-includes-mobile {
        margin: 0;
        padding: 20px 16px 16px;
        border-radius: 14px;
        background: var(--reg-teal-soft);
    }

    .reg-includes-mobile li {
        margin-bottom: 14px;
        font-size: 13px;
        line-height: 18px;
    }

    .reg-includes-mobile li:last-child {
        margin-bottom: 0;
    }

    .reg-card {
        padding: 24px 16px 20px;
        border-radius: 16px;
    }

    .reg-card-title {
        margin-bottom: 6px;
        font-size: 23px;
        line-height: 1.2;
    }

    .reg-card-copy {
        margin-bottom: 16px;
        font-size: 12px;
    }

    .reg-social {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 16px;
    }

    .reg-social-btn {
        gap: 8px;
        padding: 0 10px;
        font-size: 13px;
    }

    .reg-or {
        margin-bottom: 16px;
        font-size: 10px;
    }

    .reg-fields {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .reg-hint {
        display: none;
    }

    .reg-terms-copy {
        font-size: 11px;
        line-height: 18px;
    }

    .reg-submit {
        height: 46px;
        margin-bottom: 10px;
    }

    .reg-secure {
        font-size: 9px;
        margin-bottom: 6px;
    }
}
