/* ==========================================================================
   Host4India Client Area & Auth Styles (Lagom Theme)
   ========================================================================== */

/* Hide HostBill's legacy header/menu bars across client area pages */
#headpart,
#mainmenu-container,
#submenu {
    display: none !important;
}

/* ==========================================================================
   1. Client Area Main Layout
   ========================================================================== */

body.h4i-ca #wrapper {
    padding-top: 40px;
}

body.h4i-ca #wrapper > .container {
    max-width: 1440px !important;
    width: auto !important;
    padding: 0 24px !important;
    box-sizing: border-box;
}

.h4i-ca-layout {
    display: grid;
    grid-template-columns: minmax(280px, 25%) 1fr;
    gap: 32px;
    align-items: start;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.h4i-ca-side {
    min-width: 280px;
}

.h4i-ca-main {
    min-width: 0;
}

/* Hide HostBill's redundant left navigation within account subpages */
.h4i-ca-main .box-feature-small {
    display: none !important;
}

.h4i-ca-main .flex-container > .span10 {
    width: auto !important;
    float: none !important;
}

/* ==========================================================================
   2. Sidebar Cards
   ========================================================================== */

.h4i-side-card {
    background: #ffffff;
    border: 1px solid #EFF2FA;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(16, 42, 100, 0.06);
    margin-bottom: 16px;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.h4i-side-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 28px;
    font-size: 20px;
    font-weight: 600;
    color: #0B1524;
    border-bottom: 1px solid #EFF2FA;
    background: #ffffff;
}

.h4i-side-head > i {
    color: #0774FF;
    font-size: 20px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.h4i-side-toggle {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #0B1524;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.h4i-side-toggle i {
    transition: transform 0.2s ease;
}

.is-collapsed .h4i-side-body {
    display: none;
}

.is-collapsed .h4i-side-toggle i {
    transform: rotate(180deg);
}

.h4i-side-body {
    padding: 22px 28px;
}

.h4i-side-body.h4i-side-links {
    padding: 0;
}

.h4i-side-info {
    font-size: 16px;
    line-height: 1.9;
    color: #3a4252;
    margin-bottom: 16px;
}

.h4i-side-link {
    display: block;
    padding: 18px 28px;
    font-size: 17px;
    color: #0B1524;
    border-bottom: 1px solid #EFF2FA;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
    box-sizing: border-box;
}

.h4i-side-link i {
    display: inline-block;
    width: 20px;
    text-align: center;
    margin-right: 10px;
    color: #0774FF;
    font-size: 15px;
}

.h4i-side-link:last-child {
    border-bottom: none;
}

.h4i-side-link:hover,
.h4i-side-link.active {
    color: #0774FF !important;
    background: #F2F6FF;
    font-weight: 600;
}

.h4i-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    background: #0774FF;
    color: #ffffff !important;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    gap: 8px;
}

.h4i-btn-primary:hover {
    background: #0560d6;
}

/* ==========================================================================
   3. Login & Authentication Page
   ========================================================================== */

.h4i-auth {
    padding: 80px 16px;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.h4i-auth-card {
    max-width: 810px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #E4E8F1;
    border-radius: 8px;
    padding: 56px 46px 0;
    box-shadow: 0 4px 16px rgba(16, 42, 100, 0.04);
    box-sizing: border-box;
}

.h4i-auth-card h1 {
    font-size: 32px;
    font-weight: 400;
    text-align: center;
    color: #0B1524;
    margin: 0 0 8px;
    line-height: 1.2;
}

.h4i-auth-sub {
    text-align: center;
    font-size: 18px;
    color: #4b5563;
    margin: 0 0 36px;
}

.h4i-auth-card .h4i-form-group {
    margin-bottom: 24px;
}

.h4i-auth-card label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #0B1524;
    margin-bottom: 8px;
}

.h4i-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.h4i-label-row label {
    margin-bottom: 0;
}

.h4i-forgot-link {
    font-size: 15px;
    color: #0774FF;
    font-weight: 500;
    text-decoration: none;
}

.h4i-forgot-link:hover {
    text-decoration: underline;
}

.h4i-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.h4i-input-wrap input {
    height: 76px;
    width: 100%;
    padding: 0 20px 0 66px;
    border: 1px solid #DCE1EA;
    border-radius: 6px;
    font-size: 20px;
    color: #0B1524;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
    font-family: inherit;
}

.h4i-input-wrap input:focus {
    border-color: #0774FF;
    box-shadow: 0 0 0 3px rgba(7, 116, 255, 0.15);
}

.h4i-input-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #94a3b8;
    pointer-events: none;
}

.h4i-toggle-pwd {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.h4i-toggle-pwd:hover {
    color: #0B1524;
}

.h4i-captcha-box {
    margin-top: 12px;
}

.h4i-captcha-group input {
    padding-left: 20px;
    height: 56px;
    font-size: 18px;
}

.h4i-btn-submit {
    height: 70px;
    width: 100%;
    background: #2563EB;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
    margin: 24px 0 46px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-family: inherit;
}

.h4i-btn-submit:hover {
    background: #1d4ed8;
}

.h4i-btn-submit:active {
    transform: translateY(1px);
}

.h4i-auth-foot {
    border-top: 1px solid #E4E8F1;
    margin: 0 -46px;
    padding: 34px 20px;
    text-align: center;
    font-size: 17px;
    color: #6B7488;
}

.h4i-auth-foot a {
    color: #0774FF;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.h4i-auth-foot a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   4. Responsive Breakpoints
   ========================================================================== */

@media (max-width: 991.98px) {
    .h4i-ca-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .h4i-ca-side {
        min-width: 0;
        width: 100%;
    }

    body.h4i-ca #wrapper > .container {
        padding: 0 16px !important;
    }
}

@media (max-width: 575.98px) {
    .h4i-auth {
        padding: 40px 12px;
    }

    .h4i-auth-card {
        padding: 32px 20px 0;
    }

    .h4i-auth-card h1 {
        font-size: 26px;
    }

    .h4i-auth-sub {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .h4i-auth-card label {
        font-size: 16px;
    }

    .h4i-input-wrap input {
        height: 56px;
        font-size: 16px;
        padding-left: 54px;
    }

    .h4i-input-icon {
        left: 18px;
        font-size: 17px;
    }

    .h4i-toggle-pwd {
        right: 14px;
        font-size: 17px;
    }

    .h4i-btn-submit {
        height: 56px;
        font-size: 17px;
        margin: 20px 0 32px;
    }

    .h4i-auth-foot {
        margin: 0 -20px;
        padding: 24px 16px;
        font-size: 15px;
    }
}
