﻿/* Login redesign (split panel + right card) */
:root {
    --login-accent: #bfd89f;
    --login-accent-dark: #bfd89f;
    /* page right-side blue (match reference) */
    --login-bg: #bfd89f;
    /* left poster blue blocks */
    --login-poster-blue: #bfd89f;
    /* poster right-strip width (override safely) */
    --login-poster-strip-w: 90px;
    --login-card: #ffffff;
    --login-muted: #7b8794;
    --login-text: #ffffff;
}

body.login-three {
    background: var(--login-bg) !important;
    background-image: none !important;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
}
.toggle-password-icon {
    cursor: pointer;
    pointer-events: auto;
}
.login-three-container {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* override template spacing */
.content-main-box {
    margin-top: 0 !important;
}

.main-login-three.main-login-new {
    min-height: 100vh;
}

.login-split {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}

.login-left,
.login-right {
    overflow: hidden;
}

.login-left {
    /* left side should be white like reference */
    background: #ffffff;
    padding: clamp(18px, 3vw, 34px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 14px solid var(--login-bg);
    min-height: 100vh;
}

.login-poster {
    /* create the reference-style "poster" composition */
    width: 100%;
    max-width: 650px;
    position: relative;
    padding: 20px 0;
    /*  background: transparent;
    box-shadow: none;*/
    /*    padding: 30px 0 10px;*/
}

    .login-poster::before {
        content: "";
        position: absolute;
        top: -28px;
        bottom: -28px;
        right: -20px;
        width: 150px;
        background: var(--login-poster-blue);
        z-index: 1;
    }

.login-poster-header {
    background: var(--login-poster-blue);
    padding: 25px 30px;
    border: 6px solid #ffffff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
    width: 90%;
    margin-left: 20px;
}

.login-poster .dept-title {
    font-weight: 800;
    color: #403e3f;
    font-size: clamp(18px, 1.6vw, 24px);
    line-height: 1.25;
    text-align: center;
    letter-spacing: 0.01em;
}

.login-poster-body {
    /* overlap layout (header + logo) */
    padding: 0;
    display: block;
    position: relative;
    z-index: 3;
}

.login-poster-logo {
    position: relative;
    z-index: 3;
    width: 80%;
    margin-left: 60px; /* shift right */
    margin-top: -20px; /* overlap header */
}

    .login-poster-logo img {
        width: 100%;
        height: auto;
        display: block;
        border: 6px solid #ffffff;
        box-shadow: 0 12px 25px rgba(0,0,0,0.25);
    }

.login-poster-footer {
    margin-top: 10px;
    text-align: center;
}

.login-poster-emblem {
    width: 150px;
    height: 100px;
    object-fit: contain;
}

.login-poster-footer-text {
    text-align: center;
}

    .login-poster-footer-text .footer-org {
        font-weight: 500;
        font-size: clamp(15px, 2.0vw, 34px);
        color: #111827;
        letter-spacing: 0.5px;
/*        text-transform: uppercase;
*/    }

    .login-poster-footer-text .footer-sub {
        margin-top: 6px;
        font-weight: 700;
        font-size: 14px;
        color: #1f2937;
    }

@media (max-width: 1200px) {
    .login-poster {
        transform: scale(0.95);
    }
}

@media (max-width: 1199.98px) {
    .login-poster {
        width: min(700px, 96%);
    }

        .login-poster::before {
            width: var(--login-poster-strip-w);
        }

    .login-poster-header {
        margin-left: 15px;
    }

    .login-poster-logo {
        margin-left: 34px;
    }
}

@media (max-width: 991.98px) {
    /* when left panel is hidden, no need poster rules */
}

.login-right {
    background: var(--login-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px; /* ✅ REMOVE 150px */
    height: 100vh; /* ✅ FIX HEIGHT */
}

.login-card {
    width: min(450px, 100%);
    background: var(--login-card);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
    padding: 26px 26px 18px;
}

    .login-card .login-head {
        text-align: center;
        margin-bottom: 18px;
    }

        .login-card .login-head h2 {
            color: var(--login-text);
            font-weight: 700;
            margin: 0;
            font-size: 24px;
        }

        .login-card .login-head p {
            margin: 6px 0 0;
            color: var(--login-muted);
            font-weight: 500;
        }

.login-field-label {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.02em;
    margin-top: 14px;
    margin-bottom: 6px;
}

@media (max-height: 700px) {
    .login-poster {
        transform: scale(0.9);
    }
}

@media (max-height: 600px) {
    .login-poster {
        transform: scale(0.8);
    }
}
/* reuse existing .login-three-inputs but make it card-friendly */
.login-card .login-three-inputs input[type="text"],
.login-card .login-three-inputs input[type="password"] {
    padding: 12px 40px;
    border-radius: 6px;
}

.login-card .login-three-inputs i {
    top: 12px;
}

.login-card .password-input-wrapper .toggle-password-icon {
    top: 50%;
    right: 12px;
    font-size: 18px;
    color: #94a3b8;
}

    .login-card .password-input-wrapper .toggle-password-icon:hover {
        color: #475569;
    }

.captcha-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .captcha-box img#img-captcha {
        height: 38px;
        width: 130px;
        border-radius: 6px;
        border: 1px solid #e5e7eb;
        background: #fff;
    }

    .captcha-box img#refresh-img-captcha {
        height: 18px !important;
        width: 18px !important;
        margin-top: 0 !important;
        cursor: pointer;
        opacity: 0.85;
    }

        .captcha-box img#refresh-img-captcha:hover {
            opacity: 1;
        }

.btn-login-wide {
    width: 100%;
    border-radius: 6px;
    background: var(--login-accent);
    border: 0;
    padding: 10px 14px;
    font-weight: 700;
}

    .btn-login-wide:hover {
        background: var(--login-accent-dark);
    }

.login-footer {
    /*  text-align: center;*/
 /*   padding-left: 8px;*/
    margin-top: 14px;
}

    .login-footer p {
        color: rgba(255,255,255,0.9);
        font-weight: 300;
        margin: 0;
    }

    .login-footer a {
        color: #ffffff;
        text-decoration: underline;
    }

.forgot-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #c8c692;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

    .forgot-link:hover {
        color: #0284c7;
        text-decoration: none;
    }

@media (max-width: 991.98px) {
    .login-split {
        grid-template-columns: 1fr;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 20px;
    }

    .login-footer p {
        font-size: 10px;
    }
}
