/* WEBHOST Solutions — Registration
   Presentation only. Native WHMCS registration logic remains in clientregister.tpl. */

html.whs-register-page,
html.whs-register-page body,
body.whs-register-page {
    background:#07111f !important;
}

body.whs-register-page #main-body,
body.whs-register-page #main-body > .container,
body.whs-register-page #main-body > .container-fluid,
body.whs-register-page .main-content,
body.whs-register-page .primary-content,
body.whs-register-page .content-padded {
    background:transparent !important;
}

body.whs-register-page .header-lined,
body.whs-register-page .sidebar {
    display:none !important;
}

body.whs-register-page .primary-content,
body.whs-register-page .primary-content[class*="col-"] {
    width:100% !important;
    max-width:100% !important;
    float:none !important;
}

.whs-register-shell {
    width:100%;
    max-width:1120px;
    margin:20px auto 28px;
    display:grid;
    grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr);
    gap:18px;
    color:#dfe5f6;
}

.whs-register-intro,
.whs-register-card {
    border:1px solid rgba(142,154,212,.16);
    border-radius:20px;
    box-shadow:0 16px 38px rgba(0,0,0,.12);
}

.whs-register-intro {
    position:sticky;
    top:18px;
    align-self:start;
    padding:31px 27px;
    overflow:hidden;
    background:
        radial-gradient(circle at 15% 8%,rgba(117,94,255,.22),transparent 38%),
        radial-gradient(circle at 94% 92%,rgba(162,83,255,.12),transparent 34%),
        linear-gradient(145deg,#111a32,#0b1326);
}

.whs-register-brandmark {
    width:50px;
    height:50px;
    display:grid;
    place-items:center;
    margin-bottom:20px;
    border:1px solid rgba(162,145,255,.22);
    border-radius:15px;
    color:#c3c7ff;
    background:linear-gradient(135deg,rgba(93,111,255,.26),rgba(158,91,255,.18));
    font-size:18px;
}

.whs-register-eyebrow,
.whs-register-card-heading > span {
    display:block;
    color:#8994b6;
    font-size:9px;
    line-height:1.2;
    font-weight:800;
    letter-spacing:.14em;
}

.whs-register-intro h1 {
    margin:7px 0;
    color:#fff;
    font-size:27px;
    line-height:1.2;
    font-weight:800;
}

.whs-register-intro > p {
    margin:0;
    color:#96a1bd;
    font-size:12px;
    line-height:1.65;
}

.whs-register-benefits {
    display:grid;
    gap:10px;
    margin-top:25px;
}

.whs-register-benefits > div {
    display:flex;
    align-items:center;
    gap:10px;
    min-height:42px;
    padding:10px 12px;
    border:1px solid rgba(142,154,212,.11);
    border-radius:11px;
    color:#cfd6e9;
    background:rgba(6,15,31,.28);
    font-size:11px;
    font-weight:700;
}

.whs-register-benefits i {
    width:18px;
    color:#aeb5ff;
    text-align:center;
}

.whs-register-card {
    min-width:0;
    padding:27px;
    background:linear-gradient(145deg,#11192f,#0c1427);
}

.whs-register-card-heading {
    margin-bottom:22px;
}

.whs-register-card-heading h2 {
    margin:6px 0 5px;
    color:#fff;
    font-size:22px;
    line-height:1.25;
    font-weight:800;
}

.whs-register-card-heading p {
    margin:0;
    color:#8f9ab9;
    font-size:11px;
    line-height:1.55;
}

/* WHMCS section titles */
.whs-register-card .sub-heading {
    position:relative;
    margin:25px 0 15px;
    text-align:left;
    border:0;
}

.whs-register-card .sub-heading:first-of-type {
    margin-top:5px;
}

.whs-register-card .sub-heading span {
    display:block;
    padding:0 0 9px;
    border-bottom:1px solid rgba(142,154,212,.13);
    color:#e9edff;
    background:transparent;
    font-size:11px;
    line-height:1.4;
    font-weight:800;
    letter-spacing:.04em;
}

.whs-register-card .sub-heading small {
    color:#7f8ba8;
    font-weight:600;
}

/* Native Bootstrap grid remains intact. */
.whs-register-card .row {
    margin-left:-6px;
    margin-right:-6px;
}

.whs-register-card [class*="col-sm-"],
.whs-register-card [class*="col-md-"] {
    padding-left:6px;
    padding-right:6px;
}

.whs-register-card .form-group {
    margin-bottom:12px;
}

.whs-register-card .prepend-icon {
    position:relative;
}

.whs-register-card .prepend-icon .field-icon {
    position:absolute;
    z-index:3;
    top:0;
    left:0;
    width:40px;
    height:46px;
    display:grid;
    place-items:center;
    margin:0;
    border:0 !important;
    color:#707c99 !important;
    background:transparent !important;
    font-size:11px;
    pointer-events:none;
}

.whs-register-card input.field,
.whs-register-card input.form-control,
.whs-register-card select.field,
.whs-register-card select.form-control,
.whs-register-card textarea.form-control,
.whs-register-card .control input,
.whs-register-card .control select,
.whs-register-card .control textarea {
    width:100%;
    min-height:46px;
    padding:10px 13px;
    border:1px solid rgba(142,154,212,.18) !important;
    border-radius:11px !important;
    color:#f4f6ff !important;
    background:#081225 !important;
    box-shadow:none !important;
    font-size:12px;
}

.whs-register-card .prepend-icon input.field,
.whs-register-card .prepend-icon input.form-control,
.whs-register-card .prepend-icon select.field,
.whs-register-card .prepend-icon select.form-control {
    padding-left:39px;
}

.whs-register-card input::placeholder,
.whs-register-card textarea::placeholder {
    color:#66728f !important;
}

.whs-register-card input:focus,
.whs-register-card select:focus,
.whs-register-card textarea:focus {
    border-color:rgba(157,142,255,.56) !important;
    box-shadow:0 0 0 3px rgba(117,98,255,.10) !important;
}

.whs-register-card select option {
    color:#111827;
}

/* Custom fields may render their own labels. */
.whs-register-card .form-group > label:not(.field-icon),
.whs-register-card .control label {
    margin-bottom:7px;
    color:#d9def0;
    font-size:10px;
    font-weight:800;
}

.whs-register-card .field-help-text,
.whs-register-card .help-block,
.whs-register-card .text-muted {
    color:#8c98b5 !important;
    font-size:10px;
}

/* Password tools */
.whs-register-card .generate-password,
.whs-register-card .btn-default {
    min-height:38px;
    border:1px solid rgba(142,154,212,.20);
    border-radius:10px;
    color:#dfe5f6;
    background:#111c32;
    font-size:10px;
    font-weight:800;
}

.whs-register-card .generate-password:hover,
.whs-register-card .generate-password:focus {
    color:#fff;
    border-color:rgba(157,142,255,.45);
    background:#18243e;
}

.whs-register-card .password-strength-meter {
    margin-top:3px;
}

.whs-register-card .password-strength-meter .progress {
    height:7px;
    margin:0 0 6px;
    border-radius:999px;
    background:#07111f;
    box-shadow:none;
}

.whs-register-card #passwordStrengthTextLabel {
    margin:0;
    color:#8f9ab9 !important;
}

/* Marketing preference */
.whs-register-card .marketing-email-optin {
    margin:22px 0 16px;
    padding:15px;
    border:1px solid rgba(142,154,212,.14);
    border-radius:13px;
    background:#0b1427;
}

.whs-register-card .marketing-email-optin h4 {
    margin:0 0 5px;
    color:#eef1ff;
    font-size:12px;
    font-weight:800;
}

.whs-register-card .marketing-email-optin p {
    margin:0 0 10px;
    color:#8994b6;
    font-size:10px;
    line-height:1.5;
}

/* Terms panel */
.whs-register-card .tospanel {
    margin:17px 0 12px;
    overflow:hidden;
    border:1px solid rgba(255,184,94,.20);
    border-radius:13px;
    background:#0b1427;
    box-shadow:none;
}

.whs-register-card .tospanel .panel-heading {
    border:0;
    color:#ffd696;
    background:rgba(206,143,51,.08);
}

.whs-register-card .tospanel .panel-title {
    font-size:11px;
    font-weight:800;
}

.whs-register-card .tospanel .panel-body {
    border:0;
    color:#cfd6e9;
    background:transparent;
}

.whs-register-card .tospanel a {
    color:#b9c0ff;
}

/* Captcha and messages */
.whs-register-card .alert {
    border-radius:12px;
}

.whs-register-card .captcha-container,
.whs-register-card .recaptcha-container {
    overflow:hidden;
}

/* Main registration button */
.whs-register-card p[align="center"] {
    margin:18px 0 0;
}

.whs-register-card input[type="submit"].btn-primary {
    width:100%;
    min-height:47px;
    padding:11px 15px;
    border:1px solid rgba(152,136,255,.36) !important;
    border-radius:11px !important;
    color:#fff !important;
    background:linear-gradient(135deg,#665bdf,#8750c9) !important;
    box-shadow:0 10px 25px rgba(105,80,217,.18) !important;
    font-size:11px;
    font-weight:800;
}

.whs-register-card input[type="submit"].btn-primary:hover,
.whs-register-card input[type="submit"].btn-primary:focus {
    border-color:rgba(196,186,255,.50) !important;
    background:linear-gradient(135deg,#7266ec,#925ada) !important;
}

/* Linked accounts */
.whs-register-card .providerLinkingFeedback,
.whs-register-card .linked-accounts {
    margin-bottom:14px;
}

.whs-register-card .btn {
    border-radius:10px;
}

/* Keep footer close to content like finished Login v3. */
body.whs-register-page section#main-body,
body.whs-register-page #main-body,
body.whs-register-page #main-body > .container,
body.whs-register-page #main-body > .container-fluid,
body.whs-register-page #main-body .main-content,
body.whs-register-page #main-body .primary-content,
body.whs-register-page #main-body .content-padded {
    min-height:0 !important;
    height:auto !important;
    margin-bottom:0 !important;
    padding-bottom:0 !important;
}

body.whs-register-page footer {
    margin-top:0 !important;
    padding-bottom:max(18px,env(safe-area-inset-bottom));
    background-color:#07111f;
}

@media (max-width:767px) {
    .whs-register-shell {
        margin:8px auto 20px;
        grid-template-columns:1fr;
        gap:11px;
    }

    .whs-register-intro {
        position:static;
        padding:17px;
        border-radius:16px;
    }

    .whs-register-brandmark {
        width:40px;
        height:40px;
        margin-bottom:11px;
        border-radius:12px;
        font-size:15px;
    }

    .whs-register-intro h1 {
        margin:5px 0;
        font-size:20px;
    }

    .whs-register-intro > p {
        font-size:11px;
        line-height:1.45;
    }

    .whs-register-benefits {
        display:none;
    }

    .whs-register-card {
        padding:18px 16px;
        border-radius:16px;
    }

    .whs-register-card-heading {
        margin-bottom:18px;
    }

    .whs-register-card-heading h2 {
        font-size:19px;
    }

    .whs-register-card .sub-heading {
        margin:21px 0 13px;
    }

    /* Let Bootstrap stack fields naturally on phones. */
    .whs-register-card .prepend-icon .field-icon {
        height:45px;
    }

    .whs-register-card input.field,
    .whs-register-card input.form-control,
    .whs-register-card select.field,
    .whs-register-card select.form-control,
    .whs-register-card textarea.form-control {
        min-height:45px;
    }

    body.whs-register-page footer {
        padding-top:14px !important;
        padding-bottom:max(20px,env(safe-area-inset-bottom)) !important;
    }
}


/* v2 — section divider cleanup.
   Override Six's white sub-heading chip while keeping its familiar section structure. */
.whs-register-card .sub-heading {
    position: relative !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin: 25px 0 16px !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
}

.whs-register-card .sub-heading:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(142,154,212,.18);
}

.whs-register-card .sub-heading > span {
    position: relative !important;
    z-index: 1;
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 5px 12px !important;
    border: 1px solid rgba(142,132,255,.18) !important;
    border-radius: 8px !important;
    color: #c9ceff !important;
    background: #0d172b !important;
    box-shadow: 0 0 0 5px #0e172b !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase;
}

.whs-register-card .sub-heading > span small {
    color: #8994b6 !important;
    font-size: 8px !important;
    font-weight: 700 !important;
}

/* Region/state field — ensure dynamically-created WHMCS field matches the rest. */
.whs-register-card #state,
.whs-register-card #stateinput {
    width: 100% !important;
    min-height: 46px !important;
    padding: 10px 13px 10px 39px !important;
    border: 1px solid rgba(142,154,212,.18) !important;
    border-radius: 11px !important;
    color: #f4f6ff !important;
    background: #081225 !important;
    box-shadow: none !important;
    font-size: 12px !important;
}

/* v2 — restyle the Bootstrap Switch generated by WHMCS marketing opt-in. */
.whs-register-card .marketing-email-optin .bootstrap-switch {
    min-width: 92px !important;
    border: 1px solid rgba(142,154,212,.22) !important;
    border-radius: 10px !important;
    background: #081225 !important;
    box-shadow: none !important;
}

.whs-register-card .marketing-email-optin .bootstrap-switch .bootstrap-switch-container {
    border-radius: 9px !important;
}

.whs-register-card .marketing-email-optin .bootstrap-switch .bootstrap-switch-handle-on,
.whs-register-card .marketing-email-optin .bootstrap-switch .bootstrap-switch-handle-off,
.whs-register-card .marketing-email-optin .bootstrap-switch .bootstrap-switch-label {
    min-height: 34px !important;
    padding: 7px 10px !important;
    border: 0 !important;
    line-height: 20px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
}

.whs-register-card .marketing-email-optin .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success {
    color: #fff !important;
    background: linear-gradient(135deg,#665bdf,#8750c9) !important;
}

.whs-register-card .marketing-email-optin .bootstrap-switch .bootstrap-switch-handle-off,
.whs-register-card .marketing-email-optin .bootstrap-switch .bootstrap-switch-label {
    color: #aeb8d0 !important;
    background: #111c32 !important;
}

.whs-register-card .marketing-email-optin .bootstrap-switch.bootstrap-switch-focused {
    border-color: rgba(157,142,255,.56) !important;
    box-shadow: 0 0 0 3px rgba(117,98,255,.10) !important;
}

@media (max-width:767px) {
    .whs-register-card .sub-heading {
        margin: 22px 0 14px !important;
    }

    .whs-register-card .sub-heading > span {
        max-width: calc(100% - 32px);
        padding: 5px 10px !important;
        text-align: center;
    }

    .whs-register-card #state,
    .whs-register-card #stateinput {
        min-height: 45px !important;
    }
}


/* v3 — native WEBHOST mailing-list switch. No Bootstrap Switch artefacts. */
.whs-register-card .whs-marketing-switch {
    display:inline-block;
    margin:0;
    cursor:pointer;
    user-select:none;
}

.whs-register-card .whs-marketing-switch-input {
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.whs-register-card .whs-marketing-switch-track {
    position:relative;
    display:grid;
    grid-template-columns:1fr 30px 1fr;
    align-items:center;
    width:126px;
    height:38px;
    overflow:hidden;
    border:1px solid rgba(142,154,212,.24);
    border-radius:10px;
    background:#081225;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.015);
    transition:border-color .18s ease, box-shadow .18s ease;
}

.whs-register-card .whs-marketing-switch-label {
    position:relative;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:center;
    height:100%;
    color:#8994b6;
    font-size:10px;
    font-weight:800;
    transition:color .18s ease;
}

.whs-register-card .whs-marketing-switch-thumb {
    position:absolute;
    z-index:1;
    top:3px;
    left:3px;
    width:58px;
    height:30px;
    border-radius:7px;
    background:linear-gradient(135deg,#665bdf,#8750c9);
    box-shadow:0 4px 12px rgba(105,80,217,.22);
    transition:transform .2s ease;
}

.whs-register-card .whs-marketing-switch-input:not(:checked) + .whs-marketing-switch-track .whs-marketing-switch-thumb {
    transform:translateX(61px);
    background:#18243e;
}

.whs-register-card .whs-marketing-switch-input:checked + .whs-marketing-switch-track .whs-marketing-switch-yes {
    color:#fff;
}

.whs-register-card .whs-marketing-switch-input:not(:checked) + .whs-marketing-switch-track .whs-marketing-switch-no {
    color:#fff;
}

.whs-register-card .whs-marketing-switch-input:focus + .whs-marketing-switch-track {
    border-color:rgba(157,142,255,.56);
    box-shadow:0 0 0 3px rgba(117,98,255,.10);
}

/* Make the region placeholder clearly readable once WHMCS inserts/replaces it. */
.whs-register-card #state::placeholder,
.whs-register-card #stateinput::placeholder {
    color:#66728f !important;
    opacity:1;
}


/* v3.3 — clean two-segment mailing-list toggle.
   Removes the sliding thumb that was overlapping the "No" label. */
.whs-register-card .whs-marketing-switch {
    display:inline-block !important;
    margin:0 !important;
    cursor:pointer;
}

.whs-register-card .whs-marketing-switch-track {
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    width:122px !important;
    height:38px !important;
    padding:3px !important;
    overflow:hidden !important;
    border:1px solid rgba(142,154,212,.24) !important;
    border-radius:10px !important;
    background:#081225 !important;
    box-shadow:none !important;
    gap:3px !important;
}

.whs-register-card .whs-marketing-switch-thumb {
    display:none !important;
}

.whs-register-card .whs-marketing-switch-label {
    position:relative !important;
    z-index:1 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    height:30px !important;
    padding:0 !important;
    border-radius:7px !important;
    color:#8994b6 !important;
    background:transparent !important;
    font-size:10px !important;
    font-weight:800 !important;
    line-height:30px !important;
    transition:background .18s ease,color .18s ease !important;
}

.whs-register-card .whs-marketing-switch-input:checked
+ .whs-marketing-switch-track .whs-marketing-switch-yes {
    color:#fff !important;
    background:linear-gradient(135deg,#665bdf,#8750c9) !important;
    box-shadow:0 3px 10px rgba(105,80,217,.20);
}

.whs-register-card .whs-marketing-switch-input:checked
+ .whs-marketing-switch-track .whs-marketing-switch-no {
    color:#78839f !important;
    background:transparent !important;
}

.whs-register-card .whs-marketing-switch-input:not(:checked)
+ .whs-marketing-switch-track .whs-marketing-switch-no {
    color:#fff !important;
    background:#1b2842 !important;
}

.whs-register-card .whs-marketing-switch-input:not(:checked)
+ .whs-marketing-switch-track .whs-marketing-switch-yes {
    color:#78839f !important;
    background:transparent !important;
}

.whs-register-card .whs-marketing-switch-input:focus
+ .whs-marketing-switch-track {
    border-color:rgba(157,142,255,.56) !important;
    box-shadow:0 0 0 3px rgba(117,98,255,.10) !important;
}
