    :root {
        --primary-color: #201E48;
        --secondary-color: #7e64ba;
        --background-color: #f8f4ed;
        --button-color: #201E48;
        --white: #ffffff;
        --text-muted: #666666;
        --error-bg: rgba(220, 53, 69, 0.1);
        --error-border: #dc3545;
        --glass-bg: rgba(255, 255, 255, 0.9);
        --glass-border: rgba(126, 100, 186, 0.2);
        --transition: all 0.3s ease;
        --border-radius: 20px;
        --glass-blur: blur(15px);
    }

    ::-webkit-scrollbar { width: 10px; }
    ::-webkit-scrollbar-track { background: var(--background-color); }
    ::-webkit-scrollbar-thumb { 
        background: var(--secondary-color);
        border-radius: 100px; 
    }
    ::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

    ::selection {
        color: var(--white);
        background: var(--primary-color);
    }

    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    body {
        background-color: var(--background-color);
        color: var(--primary-color);
        font-family: 'Poppins', sans-serif;
        min-height: 100vh;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    /* Full Page Layout */
    .page-wrapper {
        display: flex;
        min-height: 100vh;
        width: 100%;
    }

    /* Image Section - Takes exactly half screen */
    .image-section {
        max-width: 1500px;
        flex: 1;
        background: url('../Resources/bdp_signage.png') no-repeat center center;
        background-size: cover;
        position: relative;
    }

    .form-section {
        overflow-y: auto;
        max-height: 100vh;
        background-color: var(--background-color);
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding: 30px 20px 20px;
    }

    .home-btn {
        position: absolute;
        top: 5%;
        right: 27px;
        padding: 0.6rem 1.2rem;
        border-radius: 30px;
        font-weight: 600;
        text-decoration: none;
        z-index: 100;
        background-color: var(--primary-color);
        color: var(--white);
        border: 2px solid var(--primary-color);
        transition: all 0.2s ease-in-out;
    }

    .home-btn:hover {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
        color: var(--white);
    }

    .blue p {
        font-size: 0.8rem; 
        color: var(--primary-color); 
        text-decoration: none;
        transition: all 0.2s ease-in-out;
    }

    .blue p:hover {
        color: var(--secondary-color); 
        text-decoration: underline;
    }

    /* Login Container - Fixed sizing */
    .login-container {
        background: var(--white);
        border: 1px solid var(--glass-border);
        border-radius: var(--border-radius);
        padding: 2.4rem;
        width: 100%;
        max-width: 580px;
        box-shadow: 0 4px 20px rgba(32, 30, 72, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .login-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .login-container img {
        max-width: 160px;
        margin: 0 auto 1.5rem;
        display: block;
    }

    .login-container h2 {
        text-align: center;
        color: var(--primary-color);
        margin-bottom: 0.75rem;
        font-size: 1.8rem;
        font-weight: 600;
    }

    .description2 {
        font-size: 0.95rem;
        text-align: center;
        color: var(--text-muted);
        margin: 0.7rem 0;
    }

    .login-container .description {
        font-size: 0.95rem;
        text-align: center;
        color: var(--text-muted);
        padding-bottom: 10px;
    }

    /* Form Elements */
    .form-group {
        margin-bottom: 1.25rem;
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        color: var(--primary-color);
        font-weight: 500;
    }

    .form-group input {
        padding: 0.85rem 1rem;
        border-radius: 30px;
        border: 1px solid var(--glass-border);
        background: var(--glass-bg);
        color: var(--primary-color);
        font-size: 1rem;
        transition: var(--transition);
        padding-right: 40px;
    }

    .form-group input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(32, 30, 72, 0.1);
    }

    .form-group input::placeholder {
        color: var(--text-muted);
        opacity: 0.7;
    }

    /* Toggle Password/PIN Visibility */
    .toggle-password {
        position: absolute;
        right: 15px;
        top: 38px;
        cursor: pointer;
        width: 20px;
        height: 20px;
        background: none;
        border: none;
        padding: 0;
    }

    .toggle-password svg {
        width: 100%;
        height: 100%;
        fill: var(--primary-color);
        transition: all 0.3s ease;
    }

    .toggle-password:hover svg {
        fill: var(--secondary-color);
    }

    /* Error Messages - Fixed space allocation */
    .error-container {
        margin-bottom: 1rem;
    }

    .error-message {
        background-color: var(--error-bg);
        color: var(--error-border);
        padding: 0.8rem;
        border-left: 4px solid var(--error-border);
        border-radius: 20px;
        font-size: 0.9rem;
    }

    .error-message p {
        margin-bottom: 0.5rem;
    }

    .error-message p:last-child {
        margin-bottom: 0;
    }

    /* Login Button */
    .btn-primary {
        display: inline-block;
        padding: 0.9rem;
        border-radius: 30px;
        font-weight: 600;
        font-size: 1rem;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        width: 100%;
        background-color: var(--primary-color);
        color: var(--white);
        border: 2px solid var(--primary-color);
    }

    .btn-primary:hover {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(126, 100, 186, 0.2);
    }

    /* Responsive Adjustments */
    @media (max-width: 768px) {
        .page-wrapper {
            flex-direction: column;
        }
        
        .image-section {
            display: none;
        }
        
        .form-section {
            width: 100%;
            padding: 20px 20px 20px;
            min-height: 100vh;
            
            align-items: center;
        }
        
        .login-container {
            max-width: 100%;
            min-height: auto;
            margin-top: 10%;
        }
        
        .home-btn {
            top: 20px;
            right: 20px;
        }
    }

    @media (max-width: 480px) {
        .login-container {
            padding: 1.75rem;
            border-radius: 15px;
            margin-top: 10%;
        }
        
        .home-btn {
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
        }
        
        .login-container h2 {
            font-size: 1.6rem;
        }
    }
