/* Public Registration Page */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.reg-body {
    min-height: 100vh;
    background: #f0f2f9;
    font-family: 'Roboto', sans-serif;
}

.reg-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ---- Left branding panel ---- */
.reg-side {
    width: 380px;
    min-width: 300px;
    background: linear-gradient(160deg, #0000eb 0%, #000080 100%);
    color: #fff;
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
}
.reg-side-inner {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.reg-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 2.5rem;
}
.reg-brand-dot {
    width: 10px; height: 10px;
    background: #ff0800;
    border-radius: 50%;
    flex-shrink: 0;
}
.reg-brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.reg-side-headline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.reg-side-sub {
    font-size: .9rem;
    opacity: .8;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.reg-side-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    margin-bottom: 2.5rem;
}
.reg-side-bullets li {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .9rem;
}
.reg-side-bullets li i { color: #a0f0c4; font-size: .9rem; flex-shrink: 0; }
.reg-side-login { font-size: .85rem; opacity: .7; }
.reg-side-login a { color: #fff; font-weight: 600; text-decoration: underline; }

/* ---- Right form panel ---- */
.reg-form-panel {
    flex: 1;
    overflow-y: auto;
    background: #fff;
}
.reg-form-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
}
.reg-form-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: .4rem;
}
.reg-form-sub {
    font-size: .9rem;
    color: #6c757d;
    margin-bottom: 1.75rem;
}

/* ---- Plan chips ---- */
.reg-section-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8899aa;
    margin-bottom: .6rem;
}
.reg-plan-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}
.reg-plan-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .75rem 1.25rem;
    border: 2px solid #dde2ef;
    border-radius: 10px;
    cursor: pointer;
    min-width: 110px;
    transition: border-color .2s, background .2s;
    position: relative;
}
.reg-plan-chip input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.reg-plan-chip-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .875rem;
    color: #3a3f5c;
}
.reg-plan-chip-price {
    font-size: .78rem;
    color: #8899aa;
    margin-top: .2rem;
}
.reg-plan-chip.selected,
.reg-plan-chip:has(input:checked) {
    border-color: #0000eb;
    background: #f0f2ff;
}
.reg-plan-chip.selected .reg-plan-chip-name { color: #0000eb; }
.reg-plan-chip.selected .reg-plan-chip-price { color: #0000eb; opacity: .7; }

/* ---- Section headings ---- */
.reg-section-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8899aa;
    padding-bottom: .5rem;
    border-bottom: 2px solid #f0f2f9;
    margin-bottom: 0;
}

/* ---- Inputs ---- */
.reg-label { font-size: .88rem; font-weight: 500; color: #3a3f5c; margin-bottom: .3rem; }
.reg-input {
    border: 1.5px solid #dde2ef;
    border-radius: 8px;
    font-size: .9rem;
    padding: .6rem .9rem;
    color: #1a1a2e;
    transition: border-color .2s;
    width: 100%;
}
.reg-input:focus { outline: none; border-color: #0000eb; box-shadow: 0 0 0 3px rgba(0,0,235,.08); }

/* Password toggle */
.reg-pw-wrap { position: relative; }
.reg-pw-wrap .reg-input { padding-right: 2.75rem; }
.reg-pw-toggle {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #8899aa;
    font-size: .9rem;
    padding: 0;
    line-height: 1;
}
.reg-pw-toggle:hover { color: #0000eb; }

/* ---- Submit ---- */
.reg-submit-btn {
    display: inline-flex;
    align-items: center;
    padding: .85rem 2.5rem;
    background: #0000eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background .25s, transform .15s;
}
.reg-submit-btn:hover { background: #0000c0; transform: translateY(-1px); }

.reg-signin-link { font-size: .88rem; color: #6c757d; }
.reg-signin-link a { color: #0000eb; font-weight: 600; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .reg-wrapper { flex-direction: column; }
    .reg-side { width: 100%; min-width: 0; }
    .reg-side-inner { padding: 2rem 1.5rem; }
    .reg-side-headline { font-size: 1.4rem; }
    .reg-form-inner { padding: 2rem 1.25rem; }
}

/* Version 1.1.1 registration refinements */
.reg-side { position: relative; overflow: hidden; }
.reg-side::before,
.reg-side::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.reg-side::before {
    width: 280px;
    height: 280px;
    top: -130px;
    right: -125px;
    background: rgba(255,255,255,.10);
}
.reg-side::after {
    width: 230px;
    height: 230px;
    left: -115px;
    bottom: -100px;
    background: rgba(255,8,0,.12);
}
.reg-side-inner { position: relative; z-index: 1; }
.reg-brand-logo {
    max-width: 52px;
    max-height: 52px;
    object-fit: contain;
}
.reg-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 13px;
    background: rgba(255,255,255,.12);
}
.reg-side-actions {
    display: grid;
    gap: .85rem;
}
.reg-side-home {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    width: fit-content;
    color: rgba(255,255,255,.8);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
}
.reg-side-home:hover { color: #fff; transform: translateX(-2px); }
.reg-form-panel {
    background:
        radial-gradient(circle at 92% 5%, rgba(0,0,235,.07), transparent 24%),
        #f5f7fb;
}
.reg-form-inner { max-width: 840px; }
#registerForm {
    padding: 1.8rem;
    border: 1px solid #e5e9f2;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(31,42,68,.09);
}
.reg-form-title { font-size: 1.9rem; letter-spacing: -.025em; }
.reg-form-sub { max-width: 650px; line-height: 1.6; }
.reg-plan-chip {
    background: #fff;
    box-shadow: 0 5px 16px rgba(35,45,72,.04);
}
.reg-plan-chip:hover { border-color: #aeb4ff; transform: translateY(-1px); }
.reg-input { min-height: 47px; background: #fbfcff; }
textarea.reg-input { min-height: auto; }
.reg-input:focus { background: #fff; }
.reg-submit-btn {
    min-height: 50px;
    box-shadow: 0 12px 24px rgba(0,0,190,.20);
}
.reg-submit-btn:hover { box-shadow: 0 15px 28px rgba(0,0,190,.26); }
.reg-footer-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.15rem;
    padding: 0 .15rem;
}
.reg-signin-link { margin: 0; }
.reg-home-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #59637a;
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
}
.reg-home-link:hover { color: #0000c9; text-decoration: underline; }

@media (min-width: 769px) {
    .reg-side { position: sticky; top: 0; height: 100vh; }
}

@media (max-width: 768px) {
    .reg-side-inner { width: 100%; }
    #registerForm { padding: 1.25rem; border-radius: 17px; }
    .reg-footer-links { align-items: flex-start; flex-direction: column; }
}

/* Version 1.2.0 dynamic membership-plan sidebar */
.reg-side-inner {
    width: 100%;
    height: 100%;
    min-height: 0;
    justify-content: flex-start;
}
.reg-brand,
.reg-side-actions { flex: 0 0 auto; }
.reg-brand { margin-bottom: 1.75rem; }
.reg-side-scroll-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: .65rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.45) rgba(255,255,255,.10);
}
.reg-side-scroll-content::-webkit-scrollbar { width: 7px; }
.reg-side-scroll-content::-webkit-scrollbar-track { background: rgba(255,255,255,.08); border-radius: 999px; }
.reg-side-scroll-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,.40); border-radius: 999px; }
.reg-side-headline {
    overflow-wrap: anywhere;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
}
.reg-selected-plan {
    margin: 0 0 1.25rem;
    padding: .95rem 1rem;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 13px;
    background: rgba(255,255,255,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.reg-selected-plan-label {
    display: block;
    margin-bottom: .28rem;
    color: rgba(255,255,255,.68);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.reg-selected-plan strong {
    display: block;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.35;
}
.reg-selected-plan p {
    margin: .48rem 0 0;
    color: rgba(255,255,255,.74);
    font-size: .79rem;
    line-height: 1.55;
}
.reg-side-bullets {
    gap: .72rem;
    margin-bottom: 1.5rem;
}
.reg-side-bullets li { align-items: flex-start; line-height: 1.45; }
.reg-side-bullets li i { margin-top: .2rem; }
.reg-side-bullets li span { min-width: 0; overflow-wrap: anywhere; }
.reg-plan-empty { color: rgba(255,255,255,.72); font-style: italic; }
.reg-side-actions {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.14);
}
.reg-plan-chip:focus-visible {
    outline: 3px solid rgba(0,0,235,.22);
    outline-offset: 2px;
}
.dyn-field[hidden],
#dynamicFieldsHeading[hidden] { display: none !important; }

@media (min-width: 769px) {
    .reg-side-inner { max-height: 100vh; }
}

@media (max-width: 768px) {
    .reg-side-inner { height: auto; max-height: none; }
    .reg-side-scroll-content { overflow: visible; padding-right: 0; }
    .reg-side-actions { margin-top: .2rem; }
}

/* Version 1.2.1 — full-page registration scrolling
   The registration page now uses the browser/page scrollbar, matching the
   login page. The left panel grows with the form instead of clipping long
   headings, descriptions, selected-plan details, or feature lists. */
html,
body.reg-body {
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto !important;
}

body.reg-body {
    display: block;
}

.reg-wrapper {
    height: auto !important;
    min-height: 100vh;
    align-items: stretch;
    overflow: visible;
}

.reg-form-panel {
    min-width: 0;
    height: auto !important;
    overflow: visible !important;
}

@media (min-width: 769px) {
    .reg-side {
        position: relative !important;
        top: auto !important;
        height: auto !important;
        min-height: 100vh;
        align-self: stretch;
    }

    .reg-side-inner {
        height: auto !important;
        min-height: 100vh;
        max-height: none !important;
        justify-content: flex-start;
        padding-bottom: 3rem;
    }

    .reg-side-scroll-content {
        flex: 0 0 auto;
        min-height: auto;
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0;
    }

    .reg-side-actions {
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .reg-side {
        min-height: auto;
        height: auto !important;
    }

    .reg-side-inner {
        min-height: auto;
        height: auto !important;
    }
}
