        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            transition: background 0.4s ease;
        }

        /* Theme Selector */
        .theme-selector {
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 1000;
        }

        .theme-selector select {
            padding: 10px 16px;
            font-size: 14px;
            font-family: inherit;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            background: white;
            cursor: pointer;
            outline: none;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .theme-selector select:hover {
            border-color: #667eea;
        }

        /* ========== THEME 1: Gradient (actuel) ========== */
        body.theme-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .theme-gradient .login-card {
            background: #ffffff;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        }

        .theme-gradient .footer-text {
            color: rgba(255, 255, 255, 0.7);
        }

        /* ========== THEME 2: Minimaliste ========== */
        body.theme-minimal {
            background: #f8fafc;
        }

        .theme-minimal .login-card {
            background: #ffffff;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 8px 30px rgba(0,0,0,0.04);
            border: 1px solid #e2e8f0;
        }

        .theme-minimal .footer-text {
            color: #94a3b8;
        }

        /* ========== THEME 3: Waves (style existant) ========== */
        body.theme-waves {
            background-color: #ededed;
            background-image: url(https://cdn-stg.jokerly.com/cdn_demo/images/miniblob.png);
            background-repeat: no-repeat;
            background-position: bottom 120% right 160%;
            background-size: 140%;
            justify-content: flex-start;
            padding-left: 10%;
        }

        .theme-waves .login-card {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }

        .theme-waves .footer-text {
            color: #64748b;
        }

        /* ========== THEME 4: Dark ========== */
        body.theme-dark {
            background: #0f172a;
        }

        .theme-dark .login-card {
            background: #1e293b;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        }

        .theme-dark .login-title {
            color: #f1f5f9;
        }

        .theme-dark .form-label {
            color: #cbd5e1;
        }

        .theme-dark .form-input {
            background: #334155;
            border-color: #475569;
            color: #f1f5f9;
        }

        .theme-dark .form-input:focus {
            border-color: #667eea;
            background: #3b4a5f;
        }

        .theme-dark .form-input::placeholder {
            color: #94a3b8;
        }

        .theme-dark .password-toggle {
            color: #94a3b8;
        }

        .theme-dark .logo-container img {
            filter: invert(1) brightness(2);
        }

        .theme-dark .footer-text {
            color: #64748b;
        }

        /* ========== THEME 5: Split Screen ========== */
        body.theme-split {
            background: #ffffff;
            padding: 0;
        }

        .theme-split .login-container {
            max-width: 100%;
            width: 100%;
            display: flex;
            min-height: 100vh;
        }

        .theme-split .split-left {
            display: block;
            flex: 1;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px;
        }

        .theme-split .split-left-content {
            text-align: center;
            color: white;
        }

        .theme-split .split-left-content h2 {
            font-size: 36px;
            font-weight: 700;
            margin-bottom: 16px;
        }

        .theme-split .split-left-content p {
            font-size: 18px;
            opacity: 0.9;
        }

        .theme-split .split-right {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px;
        }

        .theme-split .login-card {
            box-shadow: none;
            max-width: 400px;
            width: 100%;
        }

        .theme-split .footer-text {
            display: none;
        }

        /* ========== THEME 6: Pattern ========== */
        body.theme-pattern {
            background-color: #f8fafc;
            background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23667eea' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        }

        .theme-pattern .login-card {
            background: #ffffff;
            box-shadow: 0 10px 40px rgba(102, 126, 234, 0.12);
            border: 1px solid rgba(102, 126, 234, 0.1);
        }

        .theme-pattern .footer-text {
            color: #94a3b8;
        }

        /* ========== THEME 7: Pattern Animated ========== */
        body.theme-pattern-anim {
            background-color: #f8fafc;
            overflow: hidden;
        }

        .theme-pattern-anim .pattern-layer {
            display: block;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }

        .theme-pattern-anim .pattern-layer svg {
            width: 100%;
            height: 100%;
        }

        .theme-pattern-anim .login-container {
            position: relative;
            z-index: 1;
        }

        .theme-pattern-anim .login-card {
            background: rgba(255, 255, 255, 0.95);
            box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
            border: 1px solid rgba(102, 126, 234, 0.1);
        }

        .theme-pattern-anim .footer-text {
            color: #94a3b8;
        }

        /* ========== Common Styles ========== */
        .split-left {
            display: none;
        }

        .login-container {
            width: 100%;
            max-width: 420px;
        }

        .login-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 48px 40px;
            transition: all 0.3s ease;
        }

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

        .logo-container img {
            height: 48px;
            width: auto;
        }

        .login-title {
            font-size: 24px;
            font-weight: 600;
            color: #1a1a2e;
            text-align: center;
            margin-bottom: 32px;
            transition: color 0.3s ease;
        }

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

        .form-label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: #374151;
            margin-bottom: 8px;
            transition: color 0.3s ease;
        }

        .form-input {
            width: 100%;
            padding: 14px 16px;
            font-size: 15px;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            outline: none;
            transition: all 0.2s ease;
            background: #f9fafb;
        }

        .form-input:focus {
            border-color: #667eea;
            background: #ffffff;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
        }

        .form-input::placeholder {
            color: #9ca3af;
        }

        .password-wrapper {
            position: relative;
        }

        .password-toggle {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
            color: #6b7280;
            transition: color 0.2s;
        }

        .password-toggle:hover {
            color: #374151;
        }

        .password-toggle svg {
            width: 20px;
            height: 20px;
            display: block;
        }

        .btn-submit {
            width: 100%;
            padding: 14px 24px;
            font-size: 16px;
            font-weight: 600;
            color: #ffffff;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 8px;
        }

        .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px -10px rgba(102, 126, 234, 0.5);
        }

        .btn-submit:active {
            transform: translateY(0);
        }

        .error-message {
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #dc2626;
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 14px;
            margin-bottom: 20px;
            text-align: center;
        }

        /* Session expiree : information, pas erreur de saisie */
        .info-message {
            background: #eff6ff;
            border: 1px solid #bfdbfe;
            color: #1d4ed8;
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 14px;
            margin-bottom: 20px;
            text-align: center;
        }

        .footer-text {
            text-align: center;
            margin-top: 24px;
            font-size: 13px;
            transition: color 0.3s ease;
        }

        .footer-text-inside {
            text-align: center;
            margin-top: 24px;
            padding-top: 20px;
            border-top: 1px solid #e5e7eb;
            font-size: 12px;
            color: #9ca3af;
        }

        .version-info {
            font-size: 10px;
            opacity: 0.6;
            margin-left: 4px;
            cursor: default;
            transition: opacity 0.3s ease;
        }

        .version-info:hover {
            opacity: 1;
        }

        @media (max-width: 480px) {
            .login-card {
                padding: 32px 24px;
            }
        }

        @media (max-width: 900px) {
            .theme-split .split-left {
                display: none;
            }
            .theme-split .login-container {
                justify-content: center;
            }
        }
