﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


.login-page-body {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    background-image: linear-gradient( 180deg, rgba(1,12,35,0.55) 0%, rgba(1,12,35,0.45) 100% ), url('/images/loginpage.png');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    background-color: #07162f;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden;
}

.login-layout {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
}

.login-layout > .container,
.login-layout > .container > main {
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.login-layout .login-page-body {
    left: 0;
    right: 0;
    width: 100vw !important;
    max-width: none !important;
    background-size: cover !important;
    background-position: center 35% !important;
}

    /* DARK OVERLAY */
    .login-page-body .overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.35) 100% );
        z-index: 1;
    }

/* MAIN CONTAINER */
.login-container {
    position: relative;
    z-index: 2;
    flex: 0 1 460px;
    width: auto;
    max-width: calc(100vw - 48px);
    padding: 0;
}

/* LOGO */
.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-subtitle {
    letter-spacing: 3px;
    font-size: 11px;
    color: #d8d8d8;
}

/* LOGIN BOX */
.login-box {
    width: 100% !important;
    max-width: 460px;
    margin: 0 auto;
    background: rgba(10, 24, 54, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 35px 30px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

    .login-box h2 {
        text-align: center;
        font-size: 32px;
        margin-bottom: 10px;
        font-weight: 600;
    }

.small-line {
    width: 60px;
    height: 3px;
    border-radius: 20px;
    margin: 0 auto 20px;
    background: #3d73ff;
}

.subtitle {
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: #d9d9d9;
    margin-bottom: 25px;
}

/* INPUTS */
.input-group {
    margin-bottom: 18px;
}

    .input-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
    }

    .input-group input {
        width: 100%;
        height: 50px;
        border: none;
        outline: none;
        border-radius: 12px;
        padding: 0 16px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.10);
        color: white;
        font-size: 15px;
        transition: 0.3s;
    }

        .input-group input:focus {
            border-color: #3d73ff;
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 0 0 3px rgba(61, 115, 255, 0.18);
        }

        .input-group input::placeholder {
            color: #b5b5b5;
        }

/* OPTIONS */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
}

    .options a {
        color: #6ea8ff;
        text-decoration: none;
    }

        .options a:hover {
            text-decoration: underline;
        }

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* LOGIN BUTTON */
.login-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: linear-gradient( 90deg, #2563ff, #5d93ff );
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(37,99,255,0.3);
    }

    .login-btn:focus-visible,
    .options a:focus-visible,
    .remember input:focus-visible {
        outline: 3px solid rgba(110, 168, 255, 0.8);
        outline-offset: 3px;
    }



/* ==========================================================================
   FORCE LAYOUT OVERRIDES (Fixes the White Border & Navbar Link Visibility)
   ========================================================================== */

/* 1. Strips out the white background and border from any layout wrappers */
main,
.container,
.body-container,
div[class*="container"]:not(.login-container) {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* 2. Forces your dark wallpaper container to stretch edge-to-edge behind the navbar */
.login-page-body .login-container {
    flex: 0 1 460px !important;
    width: auto !important;
    max-width: calc(100vw - 48px) !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

@media (max-width: 480px) {
    .login-page-body {
        overflow-y: auto;
        padding: 24px 0;
    }

    .login-box {
        padding: 28px 22px;
    }

    .login-box h2 {
        font-size: 28px;
    }

    .options {
        align-items: flex-start;
        gap: 12px;
        flex-wrap: wrap;
    }
}

/* 3. Forces your navbar menu links to render in white text on this specific page */
.navbar,
.navbar a,
.nav-links a,
.dropbtn {
    color: #ffffff !important;
}

    /* 4. Subtle adjust: changes your navigation link hover state to match your blue branding button */
    .nav-links a:hover,
    .dropbtn:hover {
        color: #5d93ff !important;
    }
