        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

        :root {
            /* Premium Light Theme Colors - Elegant & Clean */
            --bg-primary: #fafbfc;
            --bg-secondary: #ffffff;
            --bg-card: rgba(255, 255, 255, 0.95);
            --bg-card-solid: #ffffff;
            --bg-input: #f4f6f8;
            --bg-input-hover: #eef1f5;
            --bg-input-focus: #ffffff;

            /* Luxury Brand Colors - Refined */
            --brand-primary: #6366f1;
            --brand-secondary: #8b5cf6;
            --brand-tertiary: #a855f7;
            --brand-gold: #f59e0b;
            --brand-gold-light: #fbbf24;
            --brand-emerald: #10b981;
            --brand-emerald-dark: #059669;
            --brand-rose: #f43f5e;
            --brand-cyan: #06b6d4;

            /* Premium Gradients - Soft & Elegant */
            --gradient-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
            --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%);
            --gradient-emerald: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
            --gradient-premium: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
            --gradient-aurora: linear-gradient(135deg, #6366f1 0%, #8b5cf6 25%, #a855f7 50%, #06b6d4 75%, #10b981 100%);
            --gradient-mesh: radial-gradient(at 40% 20%, hsla(252, 100%, 68%, 0.08) 0px, transparent 50%),
                            radial-gradient(at 80% 0%, hsla(225, 100%, 68%, 0.06) 0px, transparent 50%),
                            radial-gradient(at 0% 50%, hsla(339, 100%, 68%, 0.05) 0px, transparent 50%),
                            radial-gradient(at 80% 50%, hsla(180, 100%, 68%, 0.04) 0px, transparent 50%),
                            radial-gradient(at 0% 100%, hsla(22, 100%, 68%, 0.05) 0px, transparent 50%);

            /* Text Colors - Dark on Light */
            --text-primary: #0f172a;
            --text-secondary: #334155;
            --text-tertiary: #64748b;
            --text-muted: #94a3b8;

            /* Glassmorphism - Light Version */
            --glass-bg: rgba(255, 255, 255, 0.7);
            --glass-border: rgba(0, 0, 0, 0.06);
            --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

            /* Borders - Subtle */
            --border-light: #e2e8f0;
            --border-medium: #cbd5e1;
            --border-focus: #6366f1;
            --border-glow: 0 0 20px rgba(99, 102, 241, 0.2);

            /* Shadows - Soft & Elegant */
            --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
            --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
            --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);
            --shadow-brand: 0 8px 30px rgba(99, 102, 241, 0.2);
            --shadow-emerald: 0 8px 30px rgba(16, 185, 129, 0.2);
            --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.1);

            /* Sizing */
            --radius-sm: 10px;
            --radius-md: 14px;
            --radius-lg: 20px;
            --radius-xl: 28px;
            --radius-full: 9999px;

            /* Timing */
            --timing-fast: 0.15s;
            --timing-normal: 0.3s;
            --timing-slow: 0.5s;
            --timing-slower: 0.8s;
            --easing: cubic-bezier(0.4, 0, 0.2, 1);
            --easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
            --easing-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            scroll-behavior: smooth;
        }

        body {
            min-height: 100vh;
            background: var(--bg-primary);
            font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            position: relative;
            overflow-x: hidden;
        }

        /* Ambient Background */
        .bg-ambient {
            position: fixed;
            inset: 0;
            background: var(--gradient-mesh);
            z-index: 0;
            animation: ambient-shift 20s ease-in-out infinite;
        }

        @keyframes ambient-shift {
            0%, 100% { opacity: 0.8; filter: hue-rotate(0deg); }
            50% { opacity: 0.6; filter: hue-rotate(20deg); }
        }

        /* Floating Orbs */
        .bg-decoration {
            position: fixed;
            inset: 0;
            overflow: hidden;
            pointer-events: none;
            z-index: 1;
        }

        .bg-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.7;
            animation: orb-float 25s ease-in-out infinite;
        }

        .bg-orb-1 {
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
            top: -150px;
            right: -100px;
            animation-delay: 0s;
        }

        .bg-orb-2 {
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
            bottom: -100px;
            left: -80px;
            animation-delay: -8s;
        }

        .bg-orb-3 {
            width: 350px;
            height: 350px;
            background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            animation-delay: -16s;
        }

        @keyframes orb-float {
            0%, 100% { transform: translate(0, 0) scale(1); }
            25% { transform: translate(40px, -25px) scale(1.08); }
            50% { transform: translate(-25px, 40px) scale(0.92); }
            75% { transform: translate(25px, 25px) scale(1.04); }
        }

        /* Particle Canvas */
        #particles-canvas {
            position: fixed;
            inset: 0;
            z-index: 1;
            pointer-events: none;
        }

        /* Subtle Grid - Light Theme */
        .bg-grid {
            position: fixed;
            inset: 0;
            background-image:
                linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
            background-size: 50px 50px;
            z-index: 1;
            mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
            -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
        }

        /* Noise Texture Overlay - Light Theme */
        .bg-noise {
            position: fixed;
            inset: 0;
            z-index: 2;
            opacity: 0.015;
            pointer-events: none;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
        }

        /* Main Container */
        .login-container {
            width: 100%;
            max-width: 440px;
            position: relative;
            z-index: 10;
        }

        /* Logo Section */
        .logo-section {
            text-align: center;
            margin-bottom: 28px;
            opacity: 0;
            animation: fadeInUp 0.8s var(--easing) forwards;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInScale {
            from {
                opacity: 0;
                transform: scale(0.9) translateY(20px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .logo-wrapper {
            position: relative;
            display: inline-block;
            margin-bottom: 16px;
        }

        /* Animated Ring */
        .logo-ring {
            position: absolute;
            inset: -14px;
            border-radius: 50%;
            background: conic-gradient(from 0deg, var(--brand-primary), var(--brand-secondary), var(--brand-tertiary), var(--brand-cyan), var(--brand-primary));
            animation: ring-spin 4s linear infinite;
            opacity: 0.5;
        }

        .logo-ring::before {
            content: '';
            position: absolute;
            inset: 3px;
            border-radius: 50%;
            background: var(--bg-primary);
        }

        @keyframes ring-spin {
            to { transform: rotate(360deg); }
        }

        /* Pulse effect */
        .logo-pulse {
            position: absolute;
            inset: -18px;
            border-radius: 50%;
            border: 2px solid var(--brand-primary);
            animation: pulse-ring 2s ease-out infinite;
            opacity: 0;
        }

        @keyframes pulse-ring {
            0% { transform: scale(0.8); opacity: 0.8; }
            100% { transform: scale(1.4); opacity: 0; }
        }

        .logo-image {
            position: relative;
            width: 80px;
            height: 80px;
            object-fit: contain;
            cursor: pointer;
            transition: all var(--timing-normal) var(--easing-elastic);
            filter: drop-shadow(0 8px 24px rgba(99, 102, 241, 0.25));
            z-index: 1;
        }

        .logo-image:hover {
            transform: scale(1.1) rotate(5deg);
            filter: drop-shadow(0 12px 32px rgba(99, 102, 241, 0.4));
        }

        .brand-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 32px;
            font-weight: 700;
            background: var(--gradient-aurora);
            background-size: 200% 200%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -1px;
            margin-bottom: 6px;
            animation: gradient-shift 5s ease infinite;
        }

        @keyframes gradient-shift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        .brand-subtitle {
            font-size: 13px;
            color: var(--text-muted);
            letter-spacing: 3px;
            text-transform: uppercase;
            font-weight: 500;
        }

        /* Login Card - Glassmorphism */
        .login-card {
            background: var(--bg-card);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-xl);
            padding: 36px 32px;
            box-shadow: var(--shadow-xl), var(--shadow-glow);
            position: relative;
            overflow: hidden;
            opacity: 0;
            animation: fadeInScale 0.8s var(--easing) 0.2s forwards;
        }

        /* Animated Border Gradient */
        .login-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-aurora);
            background-size: 200% 100%;
            animation: border-flow 3s linear infinite;
        }

        @keyframes border-flow {
            0% { background-position: 0% 0%; }
            100% { background-position: 200% 0%; }
        }

        /* Corner Accents */
        .login-card::after {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 60%);
            pointer-events: none;
        }

        .card-header {
            text-align: center;
            margin-bottom: 28px;
            position: relative;
            z-index: 1;
        }

        .card-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 26px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
            letter-spacing: -0.5px;
        }

        .card-description {
            font-size: 15px;
            color: var(--text-tertiary);
            line-height: 1.6;
        }

        /* Welcome Badge */
        .welcome-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 14px;
            padding: 10px 18px;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.06));
            border: 1px solid rgba(16, 185, 129, 0.2);
            border-radius: var(--radius-full);
            font-size: 13px;
            color: var(--brand-emerald-dark);
            font-weight: 500;
        }

        .welcome-badge svg {
            width: 16px;
            height: 16px;
            color: var(--brand-emerald);
        }

        /* Form Elements - Premium Style */
        .form-group {
            margin-bottom: 20px;
            position: relative;
        }

        .form-label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-tertiary);
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .input-wrapper {
            position: relative;
        }

        .input-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            width: 18px;
            height: 18px;
            color: var(--text-muted);
            transition: all var(--timing-normal) var(--easing);
            pointer-events: none;
        }

        .form-input {
            width: 100%;
            height: 54px;
            background: var(--bg-input);
            border: 1.5px solid var(--border-light);
            border-radius: var(--radius-md);
            padding: 0 18px 0 50px;
            font-size: 15px;
            font-weight: 500;
            color: var(--text-primary);
            transition: all var(--timing-normal) var(--easing);
            font-family: inherit;
        }

        .form-input::placeholder {
            color: var(--text-muted);
            font-weight: 400;
        }

        .form-input:hover {
            background: var(--bg-input-hover);
            border-color: var(--border-medium);
        }

        .form-input:focus {
            outline: none;
            background: var(--bg-input-focus);
            border-color: var(--brand-primary);
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12), var(--border-glow);
        }

        .form-input:focus ~ .input-icon {
            color: var(--brand-primary);
            transform: translateY(-50%) scale(1.1);
        }

        /* Valid input state */
        .form-input.valid {
            border-color: var(--brand-emerald);
        }

        .form-input.valid ~ .input-icon {
            color: var(--brand-emerald);
        }

        .form-group.has-error .form-input {
            border-color: var(--brand-rose);
            background: rgba(251, 113, 133, 0.06);
        }

        .form-group.has-error .input-icon {
            color: var(--brand-rose);
        }

        /* Login Button - Premium CTA */
        .login-btn {
            width: 100%;
            height: 56px;
            background: var(--gradient-emerald);
            background-size: 200% 200%;
            border: none;
            border-radius: var(--radius-lg);
            font-size: 16px;
            font-weight: 700;
            color: white;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            transition: all var(--timing-normal) var(--easing);
            box-shadow: var(--shadow-emerald);
            margin-top: 8px;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            animation: gradient-shift 5s ease infinite;
        }

        .login-btn::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-btn:hover {
            transform: translateY(-3px) scale(1.01);
            box-shadow: 0 20px 40px rgba(16, 185, 129, 0.35);
        }

        .login-btn:hover::before {
            left: 100%;
        }

        .login-btn:active {
            transform: translateY(-1px) scale(0.99);
        }

        .login-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        /* Button ripple effect */
        .login-btn .ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.4);
            transform: scale(0);
            animation: ripple 0.6s linear;
            pointer-events: none;
        }

        @keyframes ripple {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }

        /* Loading Indicator */
        .loading-indicator {
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            display: inline-block;
            vertical-align: middle;
            margin-right: 8px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Error Message */
        .error-message {
            margin-top: 16px;
            padding: 14px 16px;
            background: #fef2f2;
            border: 1px solid #fecaca;
            border-radius: var(--radius-md);
            color: #dc2626;
            font-size: 13px;
            text-align: center;
            line-height: 1.5;
            animation: shake 0.4s var(--easing);
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-4px); }
            75% { transform: translateX(4px); }
        }

        /* Divider */
        .divider {
            display: flex;
            align-items: center;
            gap: 16px;
            margin: 24px 0;
            color: var(--text-muted);
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border-light);
        }

        /* Action Links */
        .action-links {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            margin-top: 20px;
            opacity: 0;
            animation: fadeInUp 0.6s var(--easing) 0.3s forwards;
        }

        .action-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 14px 28px;
            border-radius: var(--radius-full);
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
            transition: all var(--timing-normal) var(--easing);
        }

        .action-btn-primary {
            background: var(--gradient-brand);
            color: white;
            box-shadow: var(--shadow-brand);
        }

        .action-btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 16px 40px rgba(99, 102, 241, 0.35);
        }

        .action-btn-secondary {
            background: var(--bg-input);
            color: var(--text-secondary);
            border: 1px solid var(--border-light);
        }

        .action-btn-secondary:hover {
            background: var(--bg-input-hover);
            color: var(--text-primary);
            border-color: var(--border-medium);
            transform: translateY(-2px);
        }

        /* Footer */
        .login-footer {
            text-align: center;
            margin-top: 24px;
            padding-top: 20px;
            border-top: 1px solid var(--border-light);
            opacity: 0;
            animation: fadeInUp 0.6s var(--easing) 0.4s forwards;
        }

        .footer-text {
            font-size: 12px;
            color: var(--text-tertiary);
        }

        .footer-link {
            color: var(--brand-primary);
            text-decoration: none;
            font-weight: 500;
        }

        .footer-link:hover {
            text-decoration: underline;
        }

        /* Loading Overlay - Premium */
        #loading {
            position: fixed;
            inset: 0;
            background: rgba(250, 251, 252, 0.95);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: all var(--timing-normal) var(--easing);
        }

        #loading.visible {
            opacity: 1;
            visibility: visible;
        }

        .loading-spinner {
            width: 56px;
            height: 56px;
            position: relative;
            margin-bottom: 28px;
        }

        .loading-spinner::before {
            content: '';
            position: absolute;
            inset: 0;
            border: 3px solid var(--border-light);
            border-top-color: var(--brand-emerald);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        .loading-spinner::after {
            content: '';
            position: absolute;
            inset: 8px;
            border: 3px solid transparent;
            border-top-color: var(--brand-primary);
            border-radius: 50%;
            animation: spin 1.2s linear infinite reverse;
        }

        .loading-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .loading-content {
            font-size: 14px;
            color: var(--text-tertiary);
        }

        /* Success Animation */
        .loading-success {
            width: 64px;
            height: 64px;
            background: var(--gradient-emerald);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 24px;
            animation: successPop 0.5s var(--easing-elastic);
            box-shadow: var(--shadow-emerald);
        }

        .loading-success svg {
            width: 32px;
            height: 32px;
            color: white;
        }

        @keyframes successPop {
            0% { transform: scale(0); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        /* Responsive */
        @media (max-width: 480px) {
            body {
                padding: 16px;
            }

            .logo-image {
                width: 64px;
                height: 64px;
            }

            .brand-title {
                font-size: 24px;
            }

            .login-card {
                padding: 28px 20px;
            }

            .card-title {
                font-size: 22px;
            }

            .form-input {
                height: 50px;
            }

            .login-btn {
                height: 50px;
            }

            .action-btn {
                padding: 12px 20px;
                font-size: 13px;
            }
        }

        /* Accessibility */
        .form-input:focus-visible,
        .login-btn:focus-visible,
        .action-btn:focus-visible {
            outline: 2px solid var(--brand-primary);
            outline-offset: 2px;
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                transition-duration: 0.01ms !important;
            }
        }

        .hidden {
            display: none !important;
        }
    
