:root {
            --background: #ffffff;
            --foreground: #1f2937;
            --card: #f8fafc;
            --card-foreground: #1f2937;
            --primary: #374151;
            --primary-foreground: #ffffff;
            --secondary: #6366f1;
            --secondary-foreground: #ffffff;
            --muted: #f8fafc;
            --muted-foreground: #6b7280;
            --accent: #6366f1;
            --accent-foreground: #ffffff;
            --destructive: #ef4444;
            --destructive-foreground: #ffffff;
            --border: #d1d5db;
            --input: #f8fafc;
            --ring: rgba(99, 102, 241, 0.5);
            --radius: 0.5rem;
        }

        .dark {
            --background: #0f172a;
            --foreground: #f1f5f9;
            --card: #1e293b;
            --card-foreground: #f1f5f9;
            --primary: #f1f5f9;
            --primary-foreground: #0f172a;
            --secondary: #4f46e5;
            --secondary-foreground: #f1f5f9;
            --muted: #1e293b;
            --muted-foreground: #94a3b8;
            --accent: #4f46e5;
            --accent-foreground: #f1f5f9;
            --destructive: #dc2626;
            --destructive-foreground: #f1f5f9;
            --border: #334155;
            --input: #1e293b;
            --ring: rgba(79, 70, 229, 0.5);
        }

        body {
            font-family: 'DM Sans', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }

        .login-container {
            background: var(--background);
            border-radius: 1rem;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            padding: 3rem;
            width: 100%;
            max-width: 420px;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .login-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--secondary), var(--accent));
        }

        .login-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .login-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 2rem;
            font-weight: 700;
            color: var(--foreground);
            margin-bottom: 0.5rem;
            letter-spacing: -0.025em;
        }

        .login-subtitle {
            color: var(--muted-foreground);
            font-size: 0.875rem;
            font-weight: 500;
        }

        .form-group {
            margin-bottom: 1.5rem;
            position: relative;
        }

        .form-label {
            display: block;
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--foreground);
            margin-bottom: 0.5rem;
            letter-spacing: 0.025em;
        }

        .form-input {
            width: 100%;
            padding: 0.875rem 1rem;
            border: 2px solid var(--border);
            border-radius: var(--radius);
            background: var(--input);
            color: var(--card-foreground);
            font-size: 0.875rem;
            transition: all 0.2s ease-in-out;
            outline: none;
        }

        .form-input:focus {
            border-color: var(--secondary);
            box-shadow: 0 0 0 3px var(--ring);
            background: var(--background);
        }

        .form-input:hover {
            border-color: var(--secondary);
        }

        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 2rem;
        }

        .checkbox-input {
            width: 1rem;
            height: 1rem;
            accent-color: var(--secondary);
        }

        .checkbox-label {
            font-size: 0.875rem;
            color: var(--muted-foreground);
            cursor: pointer;
        }

        .login-button {
            width: 100%;
            background: linear-gradient(135deg, var(--secondary), var(--accent));
            color: var(--secondary-foreground);
            border: none;
            border-radius: var(--radius);
            padding: 0.875rem 1.5rem;
            font-size: 0.875rem;
            font-weight: 600;
            font-family: 'Space Grotesk', sans-serif;
            letter-spacing: 0.025em;
            cursor: pointer;
            transition: all 0.2s ease-in-out;
            position: relative;
            overflow: hidden;
        }

        .login-button:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
        }

        .login-button:active {
            transform: translateY(0);
        }

        .login-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .login-button:hover::before {
            left: 100%;
        }

        .alert {
            padding: 1rem;
            border-radius: var(--radius);
            margin-bottom: 1.5rem;
            font-size: 0.875rem;
            border: 1px solid;
        }

        .alert-danger {
            background-color: rgba(239, 68, 68, 0.1);
            color: var(--destructive);
            border-color: rgba(239, 68, 68, 0.2);
        }

        .alert ul {
            margin: 0;
            padding-left: 1rem;
        }

        .alert li {
            margin-bottom: 0.25rem;
        }

        .forgot-password {
            text-align: center;
            margin-top: 1.5rem;
        }

        .forgot-password a {
            color: var(--secondary);
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            transition: color 0.2s ease-in-out;
        }

        .forgot-password a:hover {
            color: var(--accent);
            text-decoration: underline;
        }

        .theme-toggle {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: var(--muted);
            border: 1px solid var(--border);
            border-radius: 50%;
            width: 2.5rem;
            height: 2.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease-in-out;
        }

        .theme-toggle:hover {
            background: var(--secondary);
            color: var(--secondary-foreground);
        }

        /* Dark mode styles */
        .dark .login-container {
            background: var(--card);
            border: 1px solid var(--border);
        }

        .dark .form-input {
            background: var(--input);
            border-color: var(--border);
            color: var(--card-foreground);
        }

        .dark .form-input:focus {
            background: var(--background);
        }

        /* Animation keyframes */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .login-container {
            animation: fadeInUp 0.6s ease-out;
        }

        /* Responsive design */
        @media (max-width: 480px) {
            .login-container {
                padding: 2rem 1.5rem;
                margin: 1rem;
            }

            .login-title {
                font-size: 1.75rem;
            }
        }

        /* Focus visible for accessibility */
        .login-button:focus-visible,
        .form-input:focus-visible,
        .checkbox-input:focus-visible {
            outline: 2px solid var(--secondary);
            outline-offset: 2px;
        }
