 :root {
            /* Premium Color Scheme */
            --primary-color: #7c3aed;
            --primary-light: #ede9fe;
            --primary-dark: #6d28d9;
            --secondary-color: #f59e0b;
            --secondary-light: #fef3c7;
            --accent-color: #10b981;
            --accent-light: #d1fae5;
            
            /* Luxury Colors */
            --luxury-gold: #d4af37;
            --luxury-light: #fef9c3;
            
            /* Neutral Colors */
            --white: #ffffff;
            --off-white: #f9fafb;
            --light-gray: #f3f4f6;
            --gray: #6b7280;
            --dark-gray: #374151;
            --dark: #1f2937;
            
            /* Gradients */
            --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
            --gradient-luxury: linear-gradient(135deg, #d4af37 0%, #f7ef8a 100%);
            --gradient-light: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
            --gradient-warm: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            
            /* Shadows */
            --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            --shadow-extra: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            --shadow-luxury: 0 10px 30px rgba(212, 175, 55, 0.2);
            
            /* Border Radius */
            --radius: 12px;
            --radius-lg: 20px;
            --radius-xl: 30px;
            --radius-2xl: 40px;
            --radius-full: 9999px;
            
            /* Fonts */
            --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            --font-display: 'Playfair Display', Georgia, serif;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-primary);
            background: linear-gradient(135deg, var(--off-white) 0%, var(--light-gray) 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            color: var(--dark);
            line-height: 1.6;
        }

        /* Desktop Layout */
        .login-container.desktop {
            display: flex;
            max-width: 1200px;
            width: 100%;
            min-height: 700px;
            background: var(--white);
            border-radius: var(--radius-xl);
            overflow: hidden;
            box-shadow: var(--shadow-extra);
            animation: fadeIn 0.8s ease-out;
        }

        /* Mobile Layout */
        .login-container.mobile {
            display: none;
            width: 100%;
            max-width: 480px;
            animation: fadeIn 0.8s ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Desktop Sidebar */
        .login-sidebar {
            flex: 0 0 45%;
            background: var(--gradient-primary);
            padding: 60px 50px;
            color: var(--white);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .login-sidebar::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
            animation: pulse 15s ease-in-out infinite alternate;
        }

        @keyframes pulse {
            0% { opacity: 0.7; transform: scale(1); }
            100% { opacity: 1; transform: scale(1.1); }
        }

        .sidebar-content {
            position: relative;
            z-index: 2;
        }

        .brand-logo {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 40px;
        }

        .brand-logo i {
            font-size: 42px;
            background: var(--gradient-luxury);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .brand-logo h1 {
            font-family: var(--font-display);
            font-size: 32px;
            font-weight: 900;
            letter-spacing: 1px;
        }

        .sidebar-title {
            font-family: var(--font-display);
            font-size: 3.2rem;
            font-weight: 900;
            line-height: 1.1;
            margin-bottom: 25px;
            background: linear-gradient(to right, #fff, var(--luxury-light));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .sidebar-subtitle {
            font-size: 1.1rem;
            opacity: 0.9;
            margin-bottom: 40px;
            line-height: 1.7;
        }

        .platforms-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-top: 50px;
        }

        .platform-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: var(--radius);
            padding: 20px;
            text-align: center;
            transition: all 0.3s ease;
        }

        .platform-card:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-5px);
        }

        .platform-icon {
            font-size: 24px;
            margin-bottom: 10px;
            color: var(--luxury-light);
        }

        .platform-name {
            font-weight: 600;
            font-size: 0.9rem;
        }

        .sidebar-footer {
            position: relative;
            z-index: 2;
            margin-top: auto;
            padding-top: 40px;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
        }

        .stats {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            font-size: 1.8rem;
            font-weight: 800;
            margin-bottom: 5px;
            color: var(--luxury-light);
        }

        .stat-label {
            font-size: 0.85rem;
            opacity: 0.9;
        }

        /* Desktop Form Section */
        .login-form-section {
            flex: 0 0 55%;
            padding: 60px 50px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            background: var(--white);
            width: 100%;
        }

        .login-form-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient-primary);
        }

        /* Mobile Card */
        .mobile-login-card {
            background: var(--white);
            overflow: hidden;
            box-shadow: var(--shadow-extra);
            position: relative;
            width: 100%;
        }

        .mobile-login-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 6px;
            background: var(--gradient-primary);
        }

        /* Mobile Body */
        .mobile-body {
            padding: 25px 20px 20px;
            display: flex;
            flex-direction: column;
            min-height: 600px;
        }

        /* Sections Container */
        .sections-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        /* Common Styles for Both */
        .form-header {
            margin-bottom: 25px;
            text-align: center;
            width: 100%;
        }

        .form-title {
            font-family: var(--font-display);
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 8px;
            color: var(--dark);
        }

        .form-subtitle {
            color: var(--gray);
            font-size: 0.95rem;
            margin-top: 10px;
        }

        .form-subtitle a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s ease;
        }

        .form-subtitle a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        /* Form Styles */
        .login-form {
            margin-bottom: 20px;
            width: 100%;
            flex: 1;
        }

        .form-group {
            margin-bottom: 20px;
            width: 100%;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--dark);
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .form-label i {
            color: var(--primary-color);
        }

        .input-with-icon {
            position: relative;
            width: 100%;
        }

        .input-with-icon i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--primary-color);
            font-size: 1.1rem;
            z-index: 1;
        }

        .form-input {
            width: 100%;
            padding: 15px 15px 15px 50px;
            border: 2px solid var(--light-gray);
            border-radius: var(--radius);
            font-size: 16px;
            font-family: var(--font-primary);
            transition: all 0.3s ease;
            background: var(--off-white);
            color: var(--dark);
            box-sizing: border-box;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary-color);
            background: var(--white);
            box-shadow: 0 0 0 4px var(--primary-light);
        }

        .form-input.error {
            border-color: #ef4444;
            background: #fef2f2;
        }

        .password-toggle {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--gray);
            cursor: pointer;
            font-size: 1.1rem;
            padding: 5px;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }

        .password-toggle:hover {
            color: var(--primary-color);
        }

        /* Remember Me & Forgot Password */
        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            width: 100%;
        }

        .remember-me {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
        }

        .remember-me input[type="checkbox"] {
            width: 18px;
            height: 18px;
            border-radius: 4px;
            border: 2px solid var(--light-gray);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .remember-me input[type="checkbox"]:checked {
            background: var(--primary-color);
            border-color: var(--primary-color);
        }

        .remember-me span {
            color: var(--dark-gray);
            font-size: 0.95rem;
            font-weight: 500;
        }

        .forgot-password {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
            transition: color 0.3s ease;
        }

        .forgot-password:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        /* Login Button */
        .login-btn {
            width: 100%;
            padding: 18px;
            background: var(--gradient-primary);
            color: var(--white);
            border: none;
            border-radius: var(--radius);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 20px;
        }

        .login-btn:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-large);
        }

        .login-btn:active {
            transform: translateY(-1px);
        }

        .login-btn.loading {
            background: var(--light-gray);
            cursor: not-allowed;
        }

        .login-btn.loading i {
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Divider */
        .divider {
            display: flex;
            align-items: center;
            margin: 20px 0;
            color: var(--gray);
            width: 100%;
        }

        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--light-gray);
        }

        .divider span {
            padding: 0 15px;
            font-size: 0.9rem;
            font-weight: 500;
        }

        /* Alternative Login Options */
        .alt-login-options {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 25px;
            width: 100%;
        }

        .alt-login-btn {
            padding: 16px 10px;
            background: var(--off-white);
            border: 2px solid var(--light-gray);
            border-radius: var(--radius);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-decoration: none;
            color: var(--dark);
            font-weight: 600;
            transition: all 0.3s ease;
            text-align: center;
            font-size: 0.9rem;
            min-height: 80px;
        }

        .alt-login-btn:hover {
            background: var(--white);
            border-color: var(--primary-light);
            transform: translateY(-2px);
            box-shadow: var(--shadow-light);
        }

        .alt-login-btn i {
            color: var(--primary-color);
            font-size: 1.6rem;
        }

        /* Sections */
        .section {
            display: none;
            flex-direction: column;
            flex: 1;
            width: 100%;
            height: 100%;
            animation: slideIn 0.3s ease;
        }

        .section.active {
            display: flex;
            flex: 1;
        }

        @keyframes slideIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* QR Code Section - FIXED FOR MOBILE */
        .qr-section {
            text-align: center;
            justify-content: center;
            align-items: center;
            padding: 20px 0;
            width: 100%;
            height: 100%;
        }

        .qr-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            max-width: 100%;
            flex: 1;
        }

        .qr-code {
            width: 220px;
            height: 220px;
            background: var(--light-gray);
            border-radius: var(--radius-lg);
            margin: 20px auto;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            border: 2px dashed var(--primary-light);
        }

        .qr-code::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                repeating-linear-gradient(0deg, transparent, transparent 8px, rgba(124, 58, 237, 0.1) 8px, rgba(124, 58, 237, 0.1) 10px),
                repeating-linear-gradient(90deg, transparent, transparent 8px, rgba(124, 58, 237, 0.1) 8px, rgba(124, 58, 237, 0.1) 10px);
        }

        .qr-code i {
            font-size: 70px;
            color: var(--primary-color);
            opacity: 0.7;
            position: relative;
            z-index: 1;
        }

        .qr-instructions {
            color: var(--gray);
            font-size: 0.95rem;
            line-height: 1.5;
            margin-bottom: 20px;
            text-align: center;
            max-width: 320px;
            padding: 0 10px;
        }

        .qr-instructions strong {
            color: var(--primary-color);
        }

        /* Staff ID Section - FIXED FOR MOBILE */
        .staff-id-section {
            justify-content: center;
            padding: 20px 0;
            width: 100%;
            height: 100%;
        }

        .staff-form-container {
            width: 100%;
            max-width: 100%;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .staff-id-input {
            margin-bottom: 20px;
        }

        /* Back Button */
        .back-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 14px;
            background: var(--off-white);
            border: 2px solid var(--light-gray);
            border-radius: var(--radius);
            color: var(--dark);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            width: 100%;
            margin-top: 20px;
        }

        .back-btn:hover {
            background: var(--white);
            border-color: var(--primary-light);
            transform: translateY(-2px);
            box-shadow: var(--shadow-light);
        }

        .back-btn i {
            color: var(--primary-color);
        }

        /* Success Message */
        .success-message {
            background: var(--accent-light);
            color: #065f46;
            padding: 15px;
            border-radius: var(--radius);
            border-left: 4px solid var(--accent-color);
            margin-bottom: 20px;
            display: none;
            animation: slideIn 0.5s ease;
            width: 100%;
        }

        .success-message.show {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        /* Validation Messages */
        .validation-message {
            color: #ef4444;
            font-size: 0.85rem;
            margin-top: 8px;
            display: none;
            padding: 10px 15px;
            background: #fef2f2;
            border-radius: var(--radius);
            border-left: 4px solid #ef4444;
            align-items: center;
            gap: 10px;
            width: 100%;
        }

        .validation-message.show {
            display: flex;
            animation: shake 0.5s ease;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }

        /* Signup Link - FIXED: One line */
        .signup-link {
            text-align: center;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid var(--light-gray);
            color: var(--gray);
            font-size: 0.95rem;
            width: 100%;
            white-space: nowrap;
        }

        .signup-link span {
            display: inline;
        }

        .signup-link a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 700;
            margin-left: 5px;
            transition: color 0.3s ease;
            display: inline;
        }

        .signup-link a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        /* Mobile Responsive Adjustments */
        @media (max-width: 1024px) {
            .login-container.desktop {
                max-width: 900px;
            }
            
            .sidebar-title {
                font-size: 2.5rem;
            }
            
            .form-title {
                font-size: 2rem;
            }
        }

        @media (max-width: 768px) {
            .login-container.desktop {
                display: none;
            }
            
            .login-container.mobile {
                display: block;
                max-width: 100%;
            }
            
            body {
                padding: 0;
                align-items: flex-start;
                background: var(--white);
                min-height: 100vh;
            }
            
            .mobile-body {
                padding: 20px 15px 15px;
                min-height: 100vh;
            }
            
            .form-header {
                margin-top: 10px;
                margin-bottom: 20px;
            }
            
            .form-title {
                font-size: 1.7rem;
                margin-bottom: 5px;
            }
            
            .alt-login-options {
                grid-template-columns: 1fr 1fr;
                gap: 10px;
                margin-bottom: 20px;
            }
            
            .alt-login-btn {
                padding: 14px 8px;
                font-size: 0.85rem;
                min-height: 75px;
                gap: 6px;
            }
            
            .alt-login-btn i {
                font-size: 1.5rem;
            }
            
            .qr-code {
                width: 200px;
                height: 200px;
            }
            
            .qr-code i {
                font-size: 60px;
            }
            
            .form-input {
                padding: 14px 45px 14px 45px;
            }
            
            .password-toggle {
                right: 12px;
            }
            
            .divider {
                margin: 18px 0;
            }
            
            .login-form {
                margin-bottom: 18px;
            }
            
            .form-group {
                margin-bottom: 18px;
            }
            
            .form-options {
                margin-bottom: 20px;
            }
            
            .login-btn {
                padding: 16px;
                margin-bottom: 18px;
            }
            
            .signup-link {
                font-size: 0.9rem;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                padding: 0 5px;
            }

            .section {
                min-height: 400px;
            }

            .qr-section,
            .staff-id-section {
                padding: 30px 0;
            }
        }

        @media (max-width: 480px) {
            .mobile-body {
                padding: 15px 12px 12px;
            }
            
            .form-title {
                font-size: 1.5rem;
                margin-bottom: 5px;
            }
            
            .form-input {
                padding: 13px 40px 13px 40px;
                font-size: 15px;
            }
            
            .input-with-icon i {
                left: 12px;
                font-size: 1rem;
            }
            
            .form-options {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }
            
            .forgot-password {
                align-self: flex-end;
            }
            
            .alt-login-options {
                grid-template-columns: 1fr 1fr;
                gap: 8px;
            }
            
            .alt-login-btn {
                padding: 12px 6px;
                font-size: 0.8rem;
                min-height: 70px;
            }
            
            .alt-login-btn i {
                font-size: 1.4rem;
            }
            
            .qr-code {
                width: 180px;
                height: 180px;
            }
            
            .qr-code i {
                font-size: 50px;
            }
            
            .signup-link {
                margin-top: 10px;
                padding-top: 10px;
                font-size: 0.85rem;
                white-space: nowrap;
            }
            
            .divider {
                margin: 15px 0;
            }
            
            .divider span {
                padding: 0 12px;
                font-size: 0.85rem;
            }
        }

        @media (min-width: 769px) {
            .login-container.mobile {
                display: none;
            }
            
            /* Desktop: 3 buttons side by side */
            .alt-login-options {
                grid-template-columns: repeat(3, 1fr);
                gap: 15px;
                margin-bottom: 30px;
            }
            
            .alt-login-btn {
                padding: 20px 15px;
                min-height: 90px;
                gap: 12px;
            }
            
            .alt-login-btn i {
                font-size: 1.8rem;
            }
            
            /* Desktop specific spacing */
            .mobile-body {
                padding: 60px 50px;
            }
            
            .form-header {
                margin-bottom: 30px;
            }
            
            .form-title {
                font-size: 2rem;
                margin-bottom: 10px;
            }
            
            .login-form {
                margin-bottom: 25px;
            }
            
            .form-group {
                margin-bottom: 25px;
            }
            
            .form-input {
                padding: 18px 20px 18px 55px;
            }
            
            .input-with-icon i {
                left: 20px;
            }
            
            .password-toggle {
                right: 20px;
            }
            
            .form-options {
                margin-bottom: 30px;
            }
            
            .divider {
                margin: 25px 0;
            }
            
            .login-btn {
                padding: 20px;
                margin-bottom: 25px;
            }
            
            .signup-link {
                margin-top: 30px;
                padding-top: 25px;
                font-size: 0.95rem;
            }
            
            .qr-code {
                width: 220px;
                height: 220px;
            }
            
            .qr-code i {
                font-size: 70px;
            }
        }

        /* Utility Classes */
        .text-center {
            text-align: center;
        }

        .mb-20 {
            margin-bottom: 20px;
        }

        .mt-20 {
            margin-top: 20px;
        }

        .fade-out {
            animation: fadeOut 0.3s ease;
        }

        @keyframes fadeOut {
            from { opacity: 1; transform: translateY(0); }
            to { opacity: 0; transform: translateY(-10px); }
        }