/* Login page (from HRS.GJC.EmployeePortal Views/Account/Login.cshtml). */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

.login-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 40px;
}

/* Blurred background layer (fills space) */
.login-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/bg.png');
    background-size: 100% 100%;
    background-position:center;
    filter: blur(20px) brightness(0.6);
    transform: scale(1.1);        /* hides blur edges */
    z-index: 0;
}

/* Clear image layer on top */
.login-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/bg.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Keep content above both layers */
.left-section {
    position: relative;
    z-index: 2;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

        .login-card {
            width: 400px;
            padding: 50px 40px;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        }

        .logo {
            text-align: center;
            margin-bottom: 25px;
        }

            .logo i {
                font-size: 48px;
                color: #2a5a2a;
            }

        .login-title {
            text-align: center;
            font-size: 24px;
            font-weight: 700;
            color: #2a5a2a;
            margin-bottom: 5px;
        }

        .login-subtitle {
            text-align: center;
            font-size: 13px;
            color: #888;
            margin-bottom: 30px;
        }

        .form-group {
            margin-bottom: 20px;
        }

            .form-group label {
                display: block;
                font-size: 12px;
                font-weight: 600;
                color: #555;
                margin-bottom: 5px;
                text-transform: uppercase;
                letter-spacing: 0.5px;
            }

            .form-group input {
                width: 100%;
                padding: 12px 14px;
                border: 1px solid #ddd;
                border-radius: 6px;
                font-size: 14px;
                transition: all 0.3s;
            }

                .form-group input:focus {
                    outline: none;
                    border-color: #2a5a2a;
                    box-shadow: 0 0 0 3px rgba(42, 90, 42, 0.1);
                }

        .password-wrapper {
            position: relative;
        }

            .password-wrapper input {
                width: 100%;
                padding: 12px 40px 12px 14px;
                border: 1px solid #ddd;
                border-radius: 6px;
                font-size: 14px;
                transition: all 0.3s;
            }

                .password-wrapper input:focus {
                    outline: none;
                    border-color: #2a5a2a;
                    box-shadow: 0 0 0 3px rgba(42, 90, 42, 0.1);
                }

        .toggle-password {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #999;
            font-size: 18px;
            transition: color 0.3s;
            background: none;
            border: none;
            padding: 0;
        }

            .toggle-password:hover {
                color: #2a5a2a;
            }

        .btn-login {
            width: 100%;
            background: #2a5a2a;
            color: #fff;
            border: none;
            padding: 12px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
            margin-top: 5px;
        }

            .btn-login:hover {
                background: #1a3a1a;
            }

            .btn-login:disabled {
                background: #ccc;
                cursor: not-allowed;
            }

        .right-section {
            display: none;
        }

        .school-bg {
            display: none;
        }

        .loading-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 10000;
            justify-content: center;
            align-items: center;
        }

            .loading-overlay.show {
                display: flex;
            }

        .loading-box {
            background: #fff;
            padding: 30px 40px;
            border-radius: 12px;
            text-align: center;
        }

            .loading-box p {
                margin: 10px 0 0 0;
                font-size: 14px;
                color: #666;
            }

        .spinner {
            width: 36px;
            height: 36px;
            border: 4px solid #e0e0e0;
            border-top-color: #4CAF50;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 0 auto;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

.login-error {
    background: #fde8e8;
    color: #a32d2d;
    border: 1px solid #f5c1c1;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    margin-bottom: 15px;
}
