
        .login-modal-scope {
            --lm-primary: #6366f1;
            --lm-primary-dark: #4f46e5;
            --lm-primary-light: #818cf8;
            --lm-secondary: #ec4899;
            --lm-glass-bg: rgba(255, 255, 255, 0.95);
            --lm-text-dark: #1e293b;
            --lm-text-muted: #64748b;
            --lm-input-bg: #f8fafc;
            --lm-input-border: #e2e8f0;
            --lm-shadow-soft: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            --lm-shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
            font-family: 'Poppins', sans-serif;
        }

        /* Staff theme overrides */
        .login-modal-scope.staff-theme {
            --lm-primary: #0d9488;
            --lm-primary-dark: #0f766e;
            --lm-primary-light: #14b8a6;
            --lm-secondary: #f59e0b;
            --lm-shadow-glow: 0 0 40px rgba(13, 148, 136, 0.3);
        }

        /* Student theme overrides */
        .login-modal-scope.student-theme {
            --lm-primary: #7c3aed;
            --lm-primary-dark: #6d28d9;
            --lm-primary-light: #8b5cf6;
            --lm-secondary: #06b6d4;
            --lm-shadow-glow: 0 0 40px rgba(124, 58, 237, 0.3);
        }

        .login-modal-scope .modal-dialog {
            max-width: 440px;
            margin: 1.75rem auto;
        }

        .login-modal-scope .modal-content {
            border: none;
            border-radius: 24px;
            background: var(--lm-glass-bg);
            backdrop-filter: blur(20px);
            box-shadow: var(--lm-shadow-soft), var(--lm-shadow-glow);
            overflow: hidden;
            position: relative;
        }

        .login-modal-scope .modal-header-custom {
            background: linear-gradient(135deg, var(--lm-primary) 0%, var(--lm-secondary) 100%);
            padding: 40px 30px 60px;
            text-align: center;
            position: relative;
            border: none;
        }

        .login-modal-scope .modal-header-custom::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 40px;
            background: var(--lm-glass-bg);
            border-radius: 24px 24px 0 0;
        }

        .login-modal-scope .login-avatar {
            width: 90px;
            height: 90px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            animation: lm-pulse 2s ease-in-out infinite;
        }

        @keyframes lm-pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        .login-modal-scope .login-avatar i {
            font-size: 2.5rem;
            background: linear-gradient(135deg, var(--lm-primary), var(--lm-secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .login-modal-scope .modal-title-custom {
            color: white;
            font-weight: 700;
            font-size: 1.6rem;
            margin: 0;
            font-family: 'Poppins', sans-serif;
        }

        .login-modal-scope .modal-subtitle {
            color: rgba(255,255,255,0.85);
            font-size: 0.9rem;
            margin-top: 5px;
            font-family: 'Poppins', sans-serif;
        }

        .login-modal-scope .btn-close-custom {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 36px;
            height: 36px;
            background: rgba(255,255,255,0.2);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10;
        }

        .login-modal-scope .btn-close-custom:hover {
            background: rgba(255,255,255,0.35);
            transform: rotate(90deg);
        }

        .login-modal-scope .modal-body {
            padding: 30px 35px 20px;
        }

        .login-modal-scope .form-floating-custom {
            position: relative;
            margin-bottom: 20px;
        }

        .login-modal-scope .form-floating-custom .form-control {
            height: 56px;
            border-radius: 14px;
            border: 2px solid var(--lm-input-border);
            background: var(--lm-input-bg);
            padding: 18px 45px 6px 18px;
            font-size: 0.95rem;
            color: var(--lm-text-dark);
            transition: all 0.3s ease;
            font-family: 'Poppins', sans-serif;
        }

        .login-modal-scope .form-floating-custom .form-control:focus {
            border-color: var(--lm-primary);
            background: white;
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
        }

        .login-modal-scope .form-floating-custom .form-control.is-valid {
            border-color: #10b981;
            background-image: none;
        }

        .login-modal-scope .form-floating-custom .form-control.is-invalid {
            border-color: #ef4444;
            background-image: none;
        }

        .login-modal-scope .form-floating-custom label {
            position: absolute;
            top: 50%;
            left: 18px;
            transform: translateY(-50%);
            color: var(--lm-text-muted);
            font-size: 0.95rem;
            pointer-events: none;
            transition: all 0.3s ease;
            background: transparent;
            padding: 0 4px;
            font-family: 'Poppins', sans-serif;
        }

        .login-modal-scope .form-floating-custom .form-control:focus + label,
        .login-modal-scope .form-floating-custom .form-control:not(:placeholder-shown) + label {
            top: 8px;
            left: 14px;
            transform: translateY(0);
            font-size: 0.75rem;
            color: var(--lm-primary);
            font-weight: 500;
        }

        .login-modal-scope .form-floating-custom .form-control.is-valid + label {
            color: #10b981;
        }

        .login-modal-scope .form-floating-custom .form-control.is-invalid + label {
            color: #ef4444;
        }

        .login-modal-scope .input-icon {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--lm-text-muted);
            font-size: 1.1rem;
            pointer-events: none;
            transition: color 0.3s ease;
        }

        .login-modal-scope .form-floating-custom .form-control:focus ~ .input-icon {
            color: var(--lm-primary);
        }

        .login-modal-scope .toggle-password {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--lm-text-muted);
            cursor: pointer;
            font-size: 1.1rem;
            padding: 5px;
            z-index: 5;
            transition: color 0.3s ease;
        }

        .login-modal-scope .toggle-password:hover {
            color: var(--lm-primary);
        }

        .login-modal-scope .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .login-modal-scope .remember-check {
            display: flex;
            align-items: center;
            cursor: pointer;
            user-select: none;
        }

        .login-modal-scope .remember-check input {
            display: none;
        }

        .login-modal-scope .checkmark {
            width: 20px;
            height: 20px;
            border: 2px solid var(--lm-input-border);
            border-radius: 6px;
            margin-right: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            position: relative;
        }

        .login-modal-scope .remember-check input:checked + .checkmark {
            background: linear-gradient(135deg, var(--lm-primary), var(--lm-secondary));
            border-color: transparent;
        }

        .login-modal-scope .remember-check input:checked + .checkmark::after {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            color: white;
            font-size: 0.7rem;
        }

        .login-modal-scope .remember-text {
            font-size: 0.9rem;
            color: var(--lm-text-muted);
            font-family: 'Poppins', sans-serif;
        }

        .login-modal-scope .forgot-link {
            color: var(--lm-primary);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            position: relative;
            transition: color 0.3s ease;
            font-family: 'Poppins', sans-serif;
        }

        .login-modal-scope .forgot-link::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(135deg, var(--lm-primary), var(--lm-secondary));
            transition: width 0.3s ease;
        }

        .login-modal-scope .forgot-link:hover {
            color: var(--lm-primary-dark);
        }

        .login-modal-scope .forgot-link:hover::after {
            width: 100%;
        }

        .login-modal-scope .btn-login {
            width: 100%;
            height: 54px;
            border-radius: 14px;
            border: none;
            background: linear-gradient(135deg, var(--lm-primary) 0%, var(--lm-secondary) 100%);
            color: white;
            font-weight: 600;
            font-size: 1rem;
            letter-spacing: 0.5px;
            box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            font-family: 'Poppins', sans-serif;
        }

        .login-modal-scope .btn-login::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s ease;
        }

        .login-modal-scope .btn-login:hover::before {
            left: 100%;
        }

        .login-modal-scope .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(99, 102, 241, 0.45);
        }

        .login-modal-scope .btn-login:active {
            transform: translateY(0);
        }

        .login-modal-scope .btn-cancel {
            width: 100%;
            height: 48px;
            border-radius: 14px;
            border: 2px solid var(--lm-input-border);
            background: transparent;
            color: var(--lm-text-muted);
            font-weight: 500;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            margin-top: 12px;
            font-family: 'Poppins', sans-serif;
        }

        .login-modal-scope .btn-cancel:hover {
            border-color: #ef4444;
            color: #ef4444;
            background: rgba(239, 68, 68, 0.05);
        }

        .login-modal-scope .divider {
            display: flex;
            align-items: center;
            margin: 25px 0;
            color: var(--lm-text-muted);
            font-size: 0.85rem;
            font-family: 'Poppins', sans-serif;
        }

        .login-modal-scope .divider::before,
        .login-modal-scope .divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--lm-input-border);
        }

        .login-modal-scope .divider span {
            padding: 0 15px;
        }

        .login-modal-scope .social-login {
            display: flex;
            gap: 12px;
            justify-content: center;
        }

        .login-modal-scope .social-btn {
            width: 50px;
            height: 50px;
            border-radius: 14px;
            border: 2px solid var(--lm-input-border);
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .login-modal-scope .social-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        }

        .login-modal-scope .social-btn.google { color: #ea4335; }
        .login-modal-scope .social-btn.google:hover { border-color: #ea4335; background: rgba(234, 67, 53, 0.05); }

        .login-modal-scope .social-btn.github { color: #333; }
        .login-modal-scope .social-btn.github:hover { border-color: #333; background: rgba(51, 51, 51, 0.05); }

        .login-modal-scope .social-btn.apple { color: #000; }
        .login-modal-scope .social-btn.apple:hover { border-color: #000; background: rgba(0, 0, 0, 0.05); }

        .login-modal-scope .signup-link {
            text-align: center;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid var(--lm-input-border);
        }

        .login-modal-scope .signup-link p {
            color: var(--lm-text-muted);
            font-size: 0.9rem;
            margin: 0;
            font-family: 'Poppins', sans-serif;
        }

        .login-modal-scope .signup-link a {
            color: var(--lm-primary);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s ease;
            font-family: 'Poppins', sans-serif;
        }

        .login-modal-scope .signup-link a:hover {
            color: var(--lm-primary-dark);
            text-decoration: underline;
        }

        .login-modal-scope.modal.fade .modal-dialog {
            transform: scale(0.9) translateY(20px);
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .login-modal-scope.modal.show .modal-dialog {
            transform: scale(1) translateY(0);
        }

        @media (max-width: 480px) {
            .login-modal-scope .modal-dialog {
                margin: 0.5rem;
            }
            .login-modal-scope .modal-body {
                padding: 25px 20px 15px;
            }
            .login-modal-scope .modal-header-custom {
                padding: 30px 20px 50px;
            }
        }

        @keyframes lm-shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }

        .login-modal-scope .shake {
            animation: lm-shake 0.5s ease;
        }

        /*

            * Elegance button styles for the login  */
        
.header-btn {
    display: inline-block;
    margin: 0 6px;
}

/* Base button structure */
.header-btn .rs-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #fff;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* ===== STAFF BUTTON - Deep Teal to Warm Amber ===== */
.header-btn .rs-btn.staff-btn {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 40%, #f59e0b 100%);
    background-size: 200% 200%;
    animation: staffGradient 6s ease infinite;
}

@keyframes staffGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== STUDENT BUTTON - Royal Purple to Electric Cyan ===== */
.header-btn .rs-btn.student-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 40%, #06b6d4 100%);
    background-size: 200% 200%;
    animation: studentGradient 6s ease infinite;
}

@keyframes studentGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Shimmer overlay effect */
.header-btn .rs-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.header-btn .rs-btn:hover::before {
    left: 100%;
}

/* Hover lift & glow */
.header-btn .rs-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

.header-btn .rs-btn.staff-btn:hover {
    box-shadow: 0 12px 35px rgba(13, 148, 136, 0.4);
}

.header-btn .rs-btn.student-btn:hover {
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.4);
}

/* Active press */
.header-btn .rs-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* ===== Text Animation ===== */
.header-btn .btn-text-wrap {
    position: relative;
    display: inline-block;
    height: 22px;
    overflow: hidden;
}

.header-btn .btn-text-wrap .text-default,
.header-btn .btn-text-wrap .text-hover {
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 22px;
}

.header-btn .btn-text-wrap .text-hover {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(100%);
    opacity: 0.9;
}

.header-btn .rs-btn:hover .btn-text-wrap .text-default {
    transform: translateY(-100%);
}

.header-btn .rs-btn:hover .btn-text-wrap .text-hover {
    transform: translateY(0);
}

/* ===== Icon Box ===== */
.header-btn .icon-box {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-btn .icon-box svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-btn .icon-box .icon-first {
    position: absolute;
    opacity: 1;
    transform: translateX(0);
}

.header-btn .icon-box .icon-second {
    position: absolute;
    opacity: 0;
    transform: translateX(-10px);
}

.header-btn .rs-btn:hover .icon-box .icon-first {
    opacity: 0;
    transform: translateX(10px);
}

.header-btn .rs-btn:hover .icon-box .icon-second {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Role Badge (top-right corner) ===== */
.header-btn .rs-btn .role-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease 0.1s;
}

.header-btn .rs-btn:hover .role-badge {
    opacity: 1;
    transform: scale(1);
}

.header-btn .rs-btn.staff-btn .role-badge {
    color: #0d9488;
}

.header-btn .rs-btn.student-btn .role-badge {
    color: #7c3aed;
}

/* ===== Ripple effect on click ===== */
.header-btn .rs-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== Responsive ===== */
@media (max-width: 576px) {
    .header-btn .rs-btn {
        padding: 12px 24px;
        font-size: 14px;
        gap: 10px;
    }
    .header-btn .icon-box {
        width: 28px;
        height: 28px;
    }
    .header-btn .icon-box svg {
        width: 16px;
        height: 16px;
    }
}

            