/* =========================================================
   BIMOCOHT LOGIN PORTALS
   STUDENT • STAFF • ADMIN
   MATCHES HOME.CSS COLOUR THEME
========================================================= */

:root {
    --bimo-blue: #073B82;
    --bimo-blue-dark: #052957;
    --bimo-blue-deep: #031D40;

    --bimo-gold: #D6A62C;
    --bimo-gold-light: #F5D98A;
    --bimo-gold-dark: #A87908;

    --bimo-white: #FFFFFF;
    --bimo-bg: #F5F7FA;
    --bimo-bg-soft: #EEF3F8;

    --bimo-text: #182536;
    --bimo-muted: #687586;

    --bimo-border: #E1E7EF;

    --shadow-sm: 0 6px 20px rgba(3,29,64,.06);
    --shadow-md: 0 15px 40px rgba(3,29,64,.10);
    --shadow-lg: 0 25px 65px rgba(3,29,64,.15);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
}


/* =========================================================
   LOGIN PAGE
========================================================= */

.login-page {
    min-height: calc(100vh - 80px);

    padding: 55px 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            rgba(245,247,250,.96),
            rgba(245,247,250,.96)
        ),
        url("../images/logo.png") center/350px no-repeat;
}


/* =========================================================
   LOGIN WRAPPER
========================================================= */

.login-wrapper {
    width: 100%;
    max-width: 1100px;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-card {
    display: grid;
    grid-template-columns: 1fr 1fr;

    overflow: hidden;

    background: var(--bimo-white);

    border: 1px solid var(--bimo-border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);
}


/* =========================================================
   BRAND PANEL
========================================================= */

.login-brand-panel {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 55px 40px;

    text-align: center;

    color: var(--bimo-white);

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(214,166,44,.16),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            var(--bimo-blue-deep),
            var(--bimo-blue)
        );

    overflow: hidden;
}

.login-brand-panel::before {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    top: -130px;
    right: -130px;

    border: 1px solid rgba(245,217,138,.20);

    border-radius: 50%;
}

.login-brand-panel::after {
    content: "";

    position: absolute;

    width: 230px;
    height: 230px;

    left: -120px;
    bottom: -110px;

    border: 1px solid rgba(245,217,138,.15);

    border-radius: 50%;
}


/* =========================================================
   LOGO
========================================================= */

.login-logo {
    position: relative;
    z-index: 2;

    width: 105px;
    height: 105px;

    object-fit: contain;

    padding: 8px;

    margin-bottom: 25px;

    background: var(--bimo-white);

    border: 3px solid var(--bimo-gold);

    border-radius: 18px;

    box-shadow: var(--shadow-md);
}


/* =========================================================
   BRAND HEADING
========================================================= */

.login-brand-panel h1 {
    position: relative;
    z-index: 2;

    margin: 0;

    color: var(--bimo-white);

    font-size: 25px;

    font-weight: 800;

    line-height: 1.4;
}

.login-brand-panel h1 span {
    display: block;

    margin-top: 5px;

    color: var(--bimo-gold-light);

    font-size: 15px;

    font-weight: 500;
}


/* =========================================================
   GOLD LINE
========================================================= */

.login-gold-line {
    position: relative;
    z-index: 2;

    width: 80px;
    height: 4px;

    margin: 22px auto;

    background: var(--bimo-gold);

    border-radius: 20px;
}


/* =========================================================
   BRAND DESCRIPTION
========================================================= */

.login-brand-panel p {
    position: relative;
    z-index: 2;

    max-width: 390px;

    margin: 0;

    color: rgba(255,255,255,.86);

    font-size: 13px;

    line-height: 1.8;
}


/* =========================================================
   ROLE BADGE
========================================================= */

.login-role-badge {
    position: relative;
    z-index: 2;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 25px;

    padding: 9px 17px;

    color: var(--bimo-gold-light);

    background: rgba(214,166,44,.14);

    border: 1px solid rgba(245,217,138,.45);

    border-radius: 30px;

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   FORM PANEL
========================================================= */

.login-form-panel {
    padding: 50px 45px;

    background: var(--bimo-white);
}


/* =========================================================
   LOGIN HEADER
========================================================= */

.login-header {
    margin-bottom: 30px;

    text-align: center;
}

.login-header-icon {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 15px;

    border-radius: 16px;

    background: var(--bimo-bg-soft);

    color: var(--bimo-blue);

    font-size: 24px;
}

.login-header h2 {
    margin: 0 0 8px;

    color: var(--bimo-blue-deep);

    font-size: 25px;

    font-weight: 800;
}

.login-header p {
    margin: 0;

    color: var(--bimo-muted);

    font-size: 13px;
}


/* =========================================================
   ERRORS AND SUCCESS
========================================================= */

.login-form-panel .form-error,
.login-form-panel .error {
    display: block;

    padding: 10px 12px;

    margin-bottom: 18px;

    color: #A61B1B;

    background: #FFF1F0;

    border: 1px solid #FFD0CC;

    border-radius: var(--radius-sm);

    text-align: center;

    font-size: 12px;
}

.login-success {
    padding: 11px 13px;

    margin-bottom: 18px;

    color: #176B47;

    background: #EEF9F2;

    border: 1px solid #B7E5C8;

    border-radius: var(--radius-sm);

    text-align: center;

    font-size: 12px;
}


/* =========================================================
   FORM LABEL
========================================================= */

.login-label {
    display: block;

    margin-bottom: 8px;

    color: var(--bimo-text);

    font-size: 12px;

    font-weight: 700;
}

.login-label .text-danger {
    color: var(--bimo-gold-dark) !important;
}


/* =========================================================
   INPUT GROUP
========================================================= */

.login-input-group {
    position: relative;

    display: flex;
    align-items: center;

    margin-bottom: 20px;
}

.login-input-group > i {
    position: absolute;

    left: 15px;

    z-index: 2;

    color: var(--bimo-blue);

    font-size: 14px;
}

.login-input-group input {
    width: 100%;
    height: 48px;

    padding: 0 45px;

    color: var(--bimo-text);

    background: var(--bimo-white);

    border: 1px solid var(--bimo-border);

    border-radius: 10px;

    outline: none;

    font-size: 12px;

    transition: .25s ease;
}

.login-input-group input::placeholder {
    color: #9AA4B2;

    font-size: 12px;
}

.login-input-group input:focus {
    border-color: var(--bimo-blue);

    box-shadow:
        0 0 0 3px rgba(7,59,130,.12);
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {
    position: absolute;

    right: 12px;

    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    background: transparent;

    color: var(--bimo-muted);

    cursor: pointer;

    font-size: 13px;
}

.password-toggle:hover {
    color: var(--bimo-gold-dark);
}


/* =========================================================
   LOGIN OPTIONS
========================================================= */

.login-options {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin: 3px 0 25px;

    font-size: 12px;
}

.login-options label {
    display: flex;

    align-items: center;

    gap: 6px;

    margin: 0;

    color: var(--bimo-muted);

    cursor: pointer;
}

.login-options input[type="checkbox"] {
    accent-color: var(--bimo-blue);

    cursor: pointer;
}

.login-options a {
    color: var(--bimo-blue);

    font-size: 12px;

    font-weight: 600;
}

.login-options a:hover {
    color: var(--bimo-gold-dark);

    text-decoration: underline;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-submit {
    width: 100%;

    min-height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            var(--bimo-blue),
            var(--bimo-blue-dark)
        );

    color: var(--bimo-white);

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition: .25s ease;
}

.login-submit:hover {
    color: var(--bimo-blue-deep);

    background:
        linear-gradient(
            135deg,
            var(--bimo-gold),
            var(--bimo-gold-light)
        );

    transform: translateY(-2px);

    box-shadow: var(--shadow-md);
}


/* =========================================================
   CONTACT ADMIN
========================================================= */

.login-contact {
    margin-top: 22px;

    color: var(--bimo-muted);

    text-align: center;

    font-size: 12px;

    line-height: 1.8;
}

.login-contact a {
    color: var(--bimo-blue);

    font-weight: 700;
}

.login-contact a:hover {
    color: var(--bimo-gold-dark);

    text-decoration: underline;
}


/* =========================================================
   LOGIN SWITCHER
========================================================= */

.login-switcher {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid var(--bimo-border);
}

.login-switcher a {
    display: inline-flex;

    align-items: center;

    padding: 8px 12px;

    color: var(--bimo-blue);

    background: var(--bimo-bg-soft);

    border: 1px solid var(--bimo-border);

    border-radius: 8px;

    font-size: 11px;

    font-weight: 700;

    transition: .25s ease;
}

.login-switcher a:hover {
    color: var(--bimo-blue-deep);

    background: var(--bimo-gold-light);

    border-color: var(--bimo-gold);

    transform: translateY(-2px);
}


/* =========================================================
   RESPONSIVE DESIGN
   HIDE BLUE BRAND PANEL ON SMALL SCREENS
========================================================= */

/* Tablets and smaller devices */
@media (max-width: 991px) {

    /* Display only the login form */
    .login-card {
        grid-template-columns: 1fr;
    }

    /* Hide the blue card and all its contents */
    .login-brand-panel {
        display: none !important;
    }

    /* Let the login form occupy the full card width */
    .login-form-panel {
        width: 100%;
        padding: 40px 35px;
    }

    .login-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }

    .login-page {
        padding: 35px 20px;
    }

}


/* Mobile phones */
@media (max-width: 575px) {

    .login-page {
        min-height: auto;
        padding: 25px 12px;
    }

    .login-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .login-card {
        display: block;
        width: 100%;
        border-radius: 14px;
    }

    /* Ensure the blue brand panel remains hidden */
    .login-brand-panel {
        display: none !important;
    }

    /* Make the login form fit smaller screens */
    .login-form-panel {
        width: 100%;
        padding: 30px 20px;
    }

    .login-header h2 {
        font-size: 22px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .login-switcher {
        gap: 7px;
    }

    .login-switcher a {
        font-size: 10px;
    }

}