/* *****************************************************

    ** Custom Stylesheet **

    Any custom styling you want to apply should be
    defined here.

***************************************************** */

/* Keep the Account dropdown directly below the fixed top navigation. */
#navbar-main .nav_right .login ul.dropdown-menu {
    margin-top: 0;
}

/* Keep the right-side Account control anchored to its button at every width. */
#navbar-main .nav_right .login {
    position: relative;
}

#navbar-main .nav_right .login > ul.navbar-nav {
    margin: 0;
}

#navbar-main .nav_right .login > ul.navbar-nav > li.dropdown {
    position: relative;
}

#navbar-main .nav_right .login > ul.navbar-nav > li.dropdown > .dropdown-menu {
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    margin: 0 !important;
    transform: none !important;
    min-width: 230px;
    max-width: calc(100vw - 16px);
    z-index: 10000;
}

#navbar-main .nav_right .login > ul.navbar-nav > li.dropdown > .dropdown-menu > li > a {
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
}

/* Use the same navigation row metrics for the right-side Account item as the
   primary navigation items. This keeps both baselines aligned on desktop. */
#navbar-main #navbar > ul.navbar-nav > li > a,
#navbar-main .nav_right .login > ul.navbar-nav > li.dropdown > a {
    line-height: 38px !important;
    padding: 24px 12px !important;
    box-sizing: border-box;
    vertical-align: top;
}

/* Use the hamburger layout before laptop-width navigation starts wrapping. */
@media only screen and (max-width: 991px) {
    #navbar-main {
        position: relative !important;
        overflow: visible !important;
    }

    #navbar-main .navbar-toggle {
        display: block;
    }

    #navbar-main .navbar-header {
        float: left;
    }

    #navbar-main .nav_right {
        position: absolute;
        top: 0;
        right: 0;
        float: none;
        margin: 0;
        z-index: 10002;
        overflow: visible;
    }

    #navbar-main .nav_right .login > ul.navbar-nav {
        display: block;
        float: none;
        margin: 0 !important;
        white-space: nowrap;
    }

    #navbar-main .nav_right .login > ul.navbar-nav > li.dropdown {
        display: block;
        float: none;
    }

    #navbar-main .nav_right .login > ul.navbar-nav > li.dropdown > a {
        line-height: 38px !important;
        padding: 22px 10px !important;
        box-sizing: border-box;
    }

    #navbar-main #navbar.navbar-collapse.collapse {
        display: none !important;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        padding: 0;
        border: 0;
        background: #434955;
        z-index: 10001;
    }

    #navbar-main #navbar.navbar-collapse.collapse.in {
        display: block !important;
    }

    #navbar-main #navbar > ul.navbar-nav {
        float: none;
        margin: 0;
        padding: 5px 0;
    }

    #navbar-main #navbar > ul.navbar-nav > li {
        display: block;
        float: none;
        width: 100%;
    }

    #navbar-main #navbar > ul.navbar-nav > li > a {
        display: block;
        float: none;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 20px;
        text-align: left;
    }
}

@media only screen and (max-width: 767px) {
    /* Keep the mobile header as one fixed navigation row. The legacy theme
       floats Account links, which makes their inherited padding add extra
       height and pushes the item below the logo/hamburger. */
    #navbar-main,
    #navbar-main .navbar-header,
    #navbar-main .nav_right,
    #navbar-main .nav_right .login,
    #navbar-main .nav_right .login > ul.navbar-nav,
    #navbar-main .nav_right .login > ul.navbar-nav > li.dropdown {
        height: 60px;
        min-height: 60px;
    }

    #navbar-main .nav_right .login > ul.navbar-nav > li.dropdown > a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        float: none;
        height: 60px !important;
        min-height: 60px !important;
        padding: 0 12px !important;
        line-height: 1.2 !important;
        box-sizing: border-box;
    }

    /* Match the small-screen top spacing used by the rest of the header. */
    #navbar-main .nav_right {
        top: 8px;
    }

    #navbar-main .nav_right .login > ul.navbar-nav > li.dropdown > a {
        white-space: nowrap;
    }

    #navbar-main .nav_right .login > ul.navbar-nav > li.dropdown > .dropdown-menu {
        position: absolute !important;
        display: none;
        top: 60px !important;
        right: 0 !important;
        left: auto !important;
        margin: 0 !important;
        min-width: 210px;
        max-width: calc(100vw - 16px);
        padding: 5px 0 !important;
        overflow: hidden;
    }

    #navbar-main .nav_right .login > ul.navbar-nav > li.dropdown > .dropdown-menu > li > a {
        display: block;
        float: none;
        width: 100%;
        box-sizing: border-box;
        line-height: 20px !important;
        padding: 12px 16px !important;
        white-space: nowrap;
        background: #434955 !important;
        color: #fff !important;
    }

    #navbar-main .nav_right .login > ul.navbar-nav > li.dropdown > .dropdown-menu > li > a:hover,
    #navbar-main .nav_right .login > ul.navbar-nav > li.dropdown > .dropdown-menu > li > a:focus {
        background: #080808 !important;
        color: #fff !important;
    }

    /* The secondary Account menu contains an empty divider item. Its anchor
       must not create a visible blank row on small screens. */
    #navbar-main .nav_right .login > ul.navbar-nav > li.dropdown > .dropdown-menu > li.nav-divider {
        display: none !important;
    }

    #navbar-main .nav_right .login > ul.navbar-nav > li.dropdown.open > .dropdown-menu {
        display: block;
    }

}

@media only screen and (max-width: 374px) {
    #navbar-main .nav_right .login > ul.navbar-nav > li.dropdown > .dropdown-menu {
        min-width: 190px;
        max-width: calc(100vw - 12px);
    }
}

/* Logout uses the same portal login shell and action treatment. */
.n24-logout-page .portal_login_center {
    width: 400px;
    max-width: calc(100% - 30px);
}

.n24-logout-page .portal_login_content {
    padding: 20px;
}

.n24-logout-page .content_panel_sub.contact_us {
    padding: 15px 0 0;
}

.n24-logout-page .content_panel_sub h4 {
    margin: 0 0 18px;
    color: #333;
    font-size: 18px;
    line-height: 1.35;
}

.n24-logout-page .content_panel_sub .alert {
    margin-bottom: 18px;
}

.n24-logout-page .content_panel_sub a.click_to_continue {
    display: block;
    float: none;
    width: 100%;
    height: 40px;
    margin: 15px 0 0;
    padding: 8px 15px;
    box-sizing: border-box;
    color: #fff;
    background: #D11D1D;
    border: 1px solid #D11D1D;
    border-radius: 4px;
    font-weight: bold;
    line-height: 22px;
    text-align: center;
    text-decoration: none;
}

.n24-logout-page .content_panel_sub a.click_to_continue:hover,
.n24-logout-page .content_panel_sub a.click_to_continue:focus {
    color: #fff;
    background: #000;
    border-color: #000;
    text-decoration: none;
}

@media only screen and (max-width: 767px) {
    .n24-logout-page .portal_login_center {
        width: calc(100% - 30px);
        max-width: 400px;
        margin-top: 45px;
    }
}

@media only screen and (max-width: 374px) {
    .n24-logout-page .portal_login_center {
        width: calc(100% - 20px);
    }
}

/* Password reset: use the same portal login shell as clientarea.php. */
.n24-password-reset-page {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    min-height: 100vh;
    height: auto;
    padding: 1px 0 50px;
    box-sizing: border-box;
    background-position: center top;
    background-size: 100% auto;
    background-repeat: no-repeat;
    overflow-x: hidden;
}

.n24-password-reset-page .portal_login_center {
    width: 400px;
    max-width: calc(100% - 30px);
    margin: 100px auto 50px;
}

.n24-password-reset-page .portal_login_logo img {
    max-width: 100%;
    height: 50px;
    width: auto;
}

.n24-password-reset-page .portal_login_content {
    padding: 20px;
}

.n24-password-reset-page .content_panel_sub.contact_us {
    padding: 15px 0 0;
}

.n24-password-reset-page .content_panel_sub h4 {
    margin: 0 0 18px;
    color: #333;
    font-size: 18px;
    line-height: 1.35;
}

.n24-password-reset-page .content_panel_sub p {
    line-height: 1.6;
}

.n24-password-reset-page .content_panel_sub form {
    margin-top: 18px;
}

.n24-password-reset-page .content_panel_sub form .form-group {
    margin-bottom: 15px;
}

.n24-password-reset-page .content_panel_sub form label {
    display: block;
    width: auto;
    margin-bottom: 5px;
}

.n24-password-reset-page .content_panel_sub form input.form-control {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
}

.n24-password-reset-page .content_panel_sub form button {
    width: 100%;
}

.n24-password-reset-page .n24-reset-back-link {
    margin-top: 20px;
    margin-bottom: 0;
}

.n24-password-reset-page .n24-reset-back-link a {
    float: right;
    margin: 10px 0;
}

.n24-password-reset-page .using-password-strength .form-control-feedback {
    right: 10px;
    top: 32px;
}

.n24-password-reset-page #inputNewPassword2Msg {
    margin-top: 5px;
}

.n24-password-reset-page .n24-password-validation-page {
    min-height: 0;
}

@media only screen and (max-width: 767px) {
    .n24-password-reset-page {
        padding: 1px 0 30px;
        background-size: auto 100%;
    }

    .n24-password-reset-page .portal_login_center {
        width: calc(100% - 30px);
        max-width: 400px;
        margin-top: 45px;
    }

    .n24-password-reset-page .portal_login_content {
        padding: 18px 15px;
    }
}

@media only screen and (max-width: 374px) {
    .n24-password-reset-page .portal_login_center {
        width: calc(100% - 20px);
    }

    .n24-password-reset-page .portal_login_content {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Password reset pages: match the Network24 blue/green service theme while
   leaving WHMCS form names, actions, security checks and messages untouched. */
.n24-auth-page {
    width: 100%;
    min-height: 480px;
    padding: 38px 15px 76px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}

.n24-auth-card {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(35, 52, 72, .16);
}

.n24-auth-card-header {
    padding: 30px 34px 27px;
    color: #ffffff;
    background: linear-gradient(135deg, #075bb4 0%, #0e7cc8 100%);
}

.n24-auth-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, .86);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.n24-auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #075bb4;
    font-size: 15px;
    background: #ffffff;
    border-radius: 50%;
}

.n24-auth-card-header h1 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.2;
}

.n24-auth-card-header p {
    max-width: 430px;
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    line-height: 1.55;
}

.n24-auth-card-body {
    padding: 30px 34px 8px;
}

.n24-auth-card-body .alert {
    margin: 0 0 22px;
    border-radius: 5px;
    line-height: 1.5;
}

.n24-auth-result-copy {
    margin: 0 0 18px;
    color: #4d5a68;
    font-size: 14px;
    line-height: 1.65;
}

.n24-auth-form .form-group {
    margin-bottom: 22px;
}

.n24-auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #304459;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .35px;
}

.n24-auth-form label i {
    width: 16px;
    color: #0b6fc0;
    text-align: center;
}

.n24-auth-form .form-control {
    width: 100%;
    height: 48px;
    padding: 12px 14px;
    color: #293746;
    background: #ffffff;
    border: 1px solid #d8e0e9;
    border-radius: 5px;
    box-shadow: none;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.n24-auth-form .form-control:focus {
    border-color: #1680cf;
    box-shadow: 0 0 0 3px rgba(22, 128, 207, .14);
}

.n24-auth-form .form-control::placeholder {
    color: #9aa8b6;
}

.n24-auth-actions {
    margin-top: 26px;
    text-align: center;
}

.n24-auth-actions .btn {
    min-width: 160px;
    min-height: 44px;
    padding: 10px 22px;
    border: 0;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    line-height: 24px;
}

.n24-auth-actions .btn i {
    margin-right: 7px;
}

.n24-auth-actions .btn-primary {
    background: #0b6fc0;
}

.n24-auth-actions .btn-primary:hover,
.n24-auth-actions .btn-primary:focus {
    background: #07599d;
}

.n24-auth-actions-dual {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.n24-auth-actions-dual .btn {
    margin: 0;
}

.n24-password-strength {
    padding: 14px 16px;
    background: #f6f9fc;
    border: 1px solid #e4ebf2;
    border-radius: 5px;
}

.n24-password-strength .progress {
    margin-bottom: 0;
}

.n24-auth-card-footer {
    padding: 0 34px 27px;
    text-align: center;
}

.n24-auth-back-link {
    color: #0b6fc0;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.n24-auth-back-link:hover,
.n24-auth-back-link:focus {
    color: #07599d;
    text-decoration: none;
}

@media only screen and (max-width: 767px) {
    .n24-auth-page {
        min-height: 440px;
        padding: 24px 12px 60px;
    }

    .n24-auth-card-header {
        padding: 25px 22px 22px;
    }

    .n24-auth-card-header h1 {
        font-size: 24px;
    }

    .n24-auth-card-header p {
        font-size: 13px;
    }

    .n24-auth-card-body {
        padding: 24px 22px 6px;
    }

    .n24-auth-card-footer {
        padding: 0 22px 24px;
    }
}

@media only screen and (max-width: 374px) {
    .n24-auth-page {
        padding-right: 8px;
        padding-left: 8px;
    }

    .n24-auth-card-header,
    .n24-auth-card-body {
        padding-right: 17px;
        padding-left: 17px;
    }

    .n24-auth-card-footer {
        padding-right: 17px;
        padding-left: 17px;
    }

    .n24-auth-card-header h1 {
        font-size: 22px;
    }
}
