/* =========================================================
   XIN HWA CLIENT PORTAL LOGIN
========================================================= */

.xh-login-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: #f5f7fa;
    font-family: inherit;
}

/* =========================================================
   LEFT BRAND PANEL
========================================================= */

.xh-login-brand {
    position: relative;
    width: 48%;
    min-height: 100vh;
    padding: 60px 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(4, 37, 66, 0.98), rgba(12, 77, 122, 0.94));
}

/* Decorative background circles */
.xh-login-brand::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    right: -170px;
    top: -130px;
    border: 1px solid rgba(255,255,255,.10);
}

.xh-login-brand::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    left: -100px;
    bottom: -100px;
    background: rgba(255,255,255,.035);
}

.xh-brand-top,
.xh-brand-content,
.xh-brand-footer {
    position: relative;
    z-index: 2;
}

.xh-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
    padding: 10px 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
}

.xh-brand-logo img {
    display: block;
    max-width: 150px;
    max-height: 65px;
    object-fit: contain;
}

.xh-brand-content {
    max-width: 540px;
}

.xh-brand-eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255,255,255,.65);
    margin-bottom: 18px;
}

.xh-brand-content h1 {
    font-size: 42px;
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 20px;
    color: #fff;
}

.xh-brand-content p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,.72);
    max-width: 480px;
    margin: 0;
}

.xh-brand-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.xh-brand-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 100px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.82);
    font-size: 12px;
}

.xh-brand-feature i {
    color: #7ec8f4;
}

.xh-brand-footer {
    font-size: 12px;
    color: rgba(255,255,255,.45);
}


/* =========================================================
   RIGHT LOGIN AREA
========================================================= */

.xh-login-area {
    width: 52%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background: #f7f9fc;
}

.xh-login-container {
    width: 100%;
    max-width: 430px;
}

.xh-mobile-logo {
    display: none;
    margin-bottom: 35px;
}

.xh-mobile-logo img {
    max-width: 150px;
    max-height: 70px;
    object-fit: contain;
}

.xh-login-heading {
    margin-bottom: 35px;
}

.xh-login-heading .xh-login-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #2978a9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.xh-login-heading h2 {
    margin: 0;
    color: #172435;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

.xh-login-heading p {
    margin: 9px 0 0;
    color: #7a8797;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   FORM
========================================================= */

.xh-form-group {
    margin-bottom: 20px;
}

.xh-form-label {
    display: block;
    margin-bottom: 8px;
    color: #354152;
    font-size: 13px;
    font-weight: 600;
}

.xh-input-wrap {
    position: relative;
}

.xh-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa5b1;
    font-size: 15px;
    pointer-events: none;
}

.xh-form-control {
    width: 100%;
    height: 52px;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    background: #fff;
    padding: 0 45px 0 44px;
    color: #253344;
    font-size: 14px;
    outline: none;
    transition: all .2s ease;
    box-sizing: border-box;
}

.xh-form-control::placeholder {
    color: #abb4bf;
}

.xh-form-control:hover {
    border-color: #c9d2dc;
}

.xh-form-control:focus {
    border-color: #4389b6;
    box-shadow: 0 0 0 3px rgba(67,137,182,.10);
}

.xh-password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 5px;
    color: #9aa5b1;
    cursor: pointer;
    outline: none;
}

.xh-password-toggle:hover {
    color: #4389b6;
}


/* =========================================================
   LOGIN ACTIONS
========================================================= */

.xh-login-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: -4px 0 24px;
}

.xh-forgot-link {
    color: #4c7290;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.xh-forgot-link:hover {
    color: #185f91;
    text-decoration: none;
}

.xh-login-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 10px;
    background: #176b9f;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .2px;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 7px 18px rgba(23,107,159,.18);
}

.xh-login-btn:hover,
.xh-login-btn:focus {
    background: #105c8b;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(23,107,159,.22);
}

.xh-login-btn:active {
    transform: translateY(0);
}

.xh-login-btn i {
    margin-left: 8px;
    font-size: 12px;
}


/* =========================================================
   FOOTER / SECURITY
========================================================= */

.xh-login-security {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #e7ebf0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #9aa4af;
    font-size: 11px;
}

.xh-login-security i {
    color: #6e9bb7;
}

.req {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .xh-login-brand {
        width: 44%;
        padding: 40px 35px;
    }

    .xh-login-area {
        width: 56%;
        padding: 40px 35px;
    }

    .xh-brand-content h1 {
        font-size: 32px;
    }

    .xh-brand-content p {
        font-size: 14px;
    }

    .xh-brand-features {
        gap: 8px;
    }

    .xh-brand-feature {
        font-size: 11px;
        padding: 8px 12px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    html,
    body {
        min-height: 100%;
        background: #f6f8fb;
    }

    .xh-login-page {
        display: block;
        min-height: 100vh;
        min-height: 100dvh;
        background: #f6f8fb;
    }

    /*
     * Hide large desktop branding section.
     * Mobile should focus directly on login.
     */
    .xh-login-brand {
        display: none;
    }

    .xh-login-area {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 30px 20px;
        background: #f6f8fb;
    }

    .xh-login-container {
        width: 100%;
        max-width: 420px;
    }

    /*
     * Mobile logo
     */
    .xh-mobile-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 28px;
    }

    .xh-mobile-logo img {
        width: auto;
        max-width: 145px;
        max-height: 70px;
        object-fit: contain;
    }

    /*
     * Heading
     */
    .xh-login-heading {
        text-align: center;
        margin-bottom: 28px;
    }

    .xh-login-heading .xh-login-label {
        margin-bottom: 8px;
        font-size: 11px;
        letter-spacing: 1.4px;
    }

    .xh-login-heading h2 {
        font-size: 26px;
        line-height: 1.25;
    }

    .xh-login-heading p {
        max-width: 330px;
        margin: 8px auto 0;
        font-size: 13px;
        line-height: 1.6;
    }

    /*
     * Form
     */
    .xh-form-group {
        margin-bottom: 18px;
    }

    .xh-form-label {
        margin-bottom: 7px;
        font-size: 13px;
    }

    .xh-form-control {
        height: 52px;
        border-radius: 10px;
        font-size: 16px;

        /*
         * 16px prevents iPhone Safari from
         * zooming automatically when focusing input.
         */
    }

    .xh-login-options {
        margin: -2px 0 22px;
    }

    .xh-forgot-link {
        font-size: 13px;
    }

    .xh-login-btn {
        height: 52px;
        border-radius: 10px;
        font-size: 15px;
    }

    .xh-login-security {
        margin-top: 25px;
        padding-top: 20px;
        font-size: 11px;
    }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 420px) {

    .xh-login-area {
        align-items: flex-start;
        padding: 35px 18px 25px;
    }

    .xh-mobile-logo {
        margin-bottom: 24px;
    }

    .xh-mobile-logo img {
        max-width: 125px;
        max-height: 60px;
    }

    .xh-login-heading {
        margin-bottom: 25px;
    }

    .xh-login-heading h2 {
        font-size: 24px;
    }

    .xh-login-heading p {
        font-size: 13px;
    }

    .xh-form-control {
        height: 50px;
    }

    .xh-login-btn {
        height: 50px;
    }

}

/* =========================================================
   SHORT HEIGHT PHONE
   Example: landscape phone
========================================================= */

@media (max-height: 650px) and (max-width: 767px) {

    .xh-login-area {
        align-items: flex-start;
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .xh-mobile-logo {
        margin-bottom: 15px;
    }

    .xh-mobile-logo img {
        max-height: 48px;
    }

    .xh-login-heading {
        margin-bottom: 20px;
    }

    .xh-login-heading p {
        display: none;
    }

    .xh-form-group {
        margin-bottom: 14px;
    }

    .xh-login-options {
        margin-bottom: 16px;
    }

    .xh-login-security {
        margin-top: 18px;
        padding-top: 15px;
    }
}