/* WEBHOST Solutions — Login
   Scoped to WHMCS login.tpl only. */

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

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

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

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

.whs-login-shell {
    width:100%;
    max-width:980px;
    margin:22px auto 34px;
    display:grid;
    grid-template-columns:minmax(0,.9fr) minmax(360px,1.1fr);
    gap:18px;
    color:#dfe5f6;
}

.whs-login-intro,
.whs-login-card {
    border:1px solid rgba(142,154,212,.16);
    border-radius:20px;
    background:linear-gradient(145deg,#11192f,#0c1427);
    box-shadow:0 16px 38px rgba(0,0,0,.12);
}

.whs-login-intro {
    padding:34px 30px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    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-login-brandmark {
    width:52px;
    height:52px;
    display:grid;
    place-items:center;
    margin-bottom:21px;
    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:19px;
}

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

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

.whs-login-intro > p {
    max-width:360px;
    margin:0;
    color:#96a1bd;
    font-size:13px;
    line-height:1.65;
}

.whs-login-benefits {
    display:grid;
    gap:10px;
    margin-top:27px;
}

.whs-login-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-login-benefits i {
    width:18px;
    color:#aeb5ff;
    text-align:center;
}

.whs-login-card {
    padding:30px;
}

.whs-login-card-heading {
    margin-bottom:23px;
}

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

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

.whs-login-card .alert {
    border-radius:12px;
}

.whs-login-form .form-group {
    margin-bottom:16px;
}

.whs-login-form label {
    margin-bottom:7px;
    color:#d9def0;
    font-size:10px;
    font-weight:800;
}

.whs-password-label-row {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.whs-password-label-row > a {
    color:#c4caff;
    font-size:10px;
    font-weight:800;
    text-decoration:none;
}

.whs-password-label-row > a:hover,
.whs-password-label-row > a:focus {
    color:#ffffff;
    text-decoration:none;
}

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

.whs-input-wrap > i {
    position:absolute;
    z-index:2;
    top:50%;
    left:14px;
    transform:translateY(-50%);
    color:#737f9e;
    font-size:12px;
}

.whs-login-form .form-control {
    height:47px;
    padding:10px 14px 10px 39px;
    border:1px solid rgba(142,154,212,.18);
    border-radius:11px;
    color:#f4f6ff;
    background:#081225;
    box-shadow:none;
    font-size:12px;
}

.whs-login-form .form-control::placeholder {
    color:#66728f;
}

.whs-login-form .form-control:focus {
    border-color:rgba(157,142,255,.56);
    box-shadow:0 0 0 3px rgba(117,98,255,.10);
}

.whs-remember {
    display:inline-flex;
    align-items:center;
    gap:9px;
    margin:0 0 17px !important;
    color:#b8c0d7 !important;
    font-size:10px !important;
    font-weight:700 !important;
    cursor:pointer;
}

.whs-remember input {
    appearance:none;
    -webkit-appearance:none;
    width:18px;
    height:18px;
    margin:0 !important;
    display:grid;
    place-items:center;
    border:1px solid rgba(151,160,197,.45);
    border-radius:5px;
    background:#081225;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);
    cursor:pointer;
}

.whs-remember input:checked {
    border-color:#8e84ff;
    background:linear-gradient(135deg,#6f63ff,#8b55de);
}

.whs-remember input:checked::after {
    content:"";
    width:8px;
    height:4px;
    border-left:2px solid #fff;
    border-bottom:2px solid #fff;
    transform:rotate(-45deg) translateY(-1px);
}

.whs-remember input:focus {
    outline:2px solid rgba(183,189,255,.55);
    outline-offset:2px;
}

.whs-login-captcha {
    margin:0 0 17px;
    overflow:hidden;
}

.whs-login-submit {
    width:100%;
    min-height:47px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:11px 15px;
    border:1px solid rgba(152,136,255,.36);
    border-radius:11px;
    color:#fff;
    background:linear-gradient(135deg,#665bdf,#8750c9);
    box-shadow:0 10px 25px rgba(105,80,217,.18);
    font-size:11px;
    font-weight:800;
}

.whs-login-submit:hover,
.whs-login-submit:focus {
    color:#fff;
    border-color:rgba(196,186,255,.50);
    background:linear-gradient(135deg,#7266ec,#925ada);
}

.whs-divider {
    position:relative;
    margin:23px 0 16px;
    text-align:center;
}

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

.whs-divider span {
    position:relative;
    display:inline-block;
    padding:0 10px;
    color:#707c99;
    background:#0e172b;
    font-size:8px;
    font-weight:800;
    letter-spacing:.12em;
}

.whs-linked-accounts {
    color:#dfe5f6;
}

/* Integrate common Six linked-account/provider buttons without changing their logic. */
.whs-linked-accounts .btn,
.whs-linked-accounts a.btn {
    border-radius:10px !important;
}

body.whs-login-page footer {
    background-color:#07111f;
}

@media (max-width:767px) {
    .whs-login-shell {
        width:100%;
        margin:10px auto 24px;
        grid-template-columns:1fr;
        gap:11px;
    }

    .whs-login-intro {
        padding:19px 17px;
        border-radius:16px;
    }

    .whs-login-brandmark {
        width:42px;
        height:42px;
        margin-bottom:13px;
        border-radius:12px;
        font-size:16px;
    }

    .whs-login-intro h1 {
        margin-top:5px;
        font-size:21px;
    }

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

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

    .whs-login-card {
        padding:19px 17px;
        border-radius:16px;
    }

    .whs-login-card-heading {
        margin-bottom:19px;
    }

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


/* v2 polish — tighten lower-page spacing without hiding or altering WHMCS branding. */
body.whs-login-page #main-body {
    padding-bottom: 12px !important;
}

body.whs-login-page .whs-login-shell {
    margin-bottom: 18px;
}

body.whs-login-page .main-content + *,
body.whs-login-page footer {
    margin-top: 0 !important;
}

body.whs-login-page footer {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
}

/* Keep the WHMCS branding readable against the dark background. */
body.whs-login-page .powered-by,
body.whs-login-page [class*="powered"] {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

@media (max-width:767px) {
    .whs-login-shell {
        margin-top: 8px;
        margin-bottom: 14px;
    }

    .whs-login-intro {
        padding: 16px 17px;
    }

    .whs-login-brandmark {
        width: 40px;
        height: 40px;
        margin-bottom: 11px;
    }

    .whs-login-intro h1 {
        margin-bottom: 5px;
        font-size: 20px;
    }

    .whs-login-intro > p {
        line-height: 1.45;
    }

    .whs-login-card {
        padding-bottom: 18px;
    }

    body.whs-login-page #main-body {
        padding-bottom: 6px !important;
    }

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


/* v3 — remove Six's reserved/minimum content height on the login page.
   The WHMCS license branding remains visible; this only closes the empty
   space between the end of the login content/branding and the footer. */
body.whs-login-page section#main-body,
body.whs-login-page #main-body {
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.whs-login-page #main-body > .container,
body.whs-login-page #main-body > .container-fluid,
body.whs-login-page #main-body > .container > .row,
body.whs-login-page #main-body .main-content,
body.whs-login-page #main-body .primary-content,
body.whs-login-page #main-body .content-padded {
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.whs-login-page section#footer,
body.whs-login-page #footer {
    clear: both;
    margin-top: 0 !important;
}

@media (max-width:767px) {
    body.whs-login-page section#main-body,
    body.whs-login-page #main-body {
        min-height: 0 !important;
        height: auto !important;
        padding-bottom: 0 !important;
    }

    body.whs-login-page section#footer,
    body.whs-login-page #footer {
        margin-top: 0 !important;
        padding-top: 16px !important;
    }
}
