    
        :root {
            --primary: #ff8c42;
            --primary-dark: #e67e22;
            --primary-light: #ffb574;
            --secondary: #2c2c2c;
            --bg: #faf8f5;
            --text: #1a1a1a;
            --muted: #6b6b6b;
            --border: #e8e3dc;
            --beige-light: #f5f1eb;
            --success: #10b981;
            --success-light: #e8f9f1;
            --danger: #e0483e;
            --danger-light: #fdeceb;
            --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #faf8f5 0%, #f5f1eb 50%, #e8dfd2 100%);
            color: var(--text);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 64px;
        }

        .logo {
            font-weight: 800;
            font-size: 24px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-decoration: none;
            letter-spacing: -0.5px;
        }

        .back-link {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--muted);
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            transition: color 0.3s;
        }

        .back-link:hover {
            color: var(--primary-dark);
        }

        /* Centrage principal */
        main {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        .auth-card {
            width: 100%;
            max-width: 440px;
            background: white;
            border: 1px solid var(--border);
            border-radius: 24px;
            box-shadow: var(--shadow-xl);
            padding: 40px;
        }

        .auth-icon {
            width: 54px;
            height: 54px;
            border-radius: 16px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }

        .auth-icon svg {
            width: 26px;
            height: 26px;
            fill: white;
        }

        .auth-card h1 {
            font-size: 24px;
            font-weight: 800;
            margin-bottom: 6px;
            letter-spacing: -0.4px;
        }

        .auth-card-sub {
            font-size: 14px;
            color: var(--muted);
            margin-bottom: 28px;
        }

        .form-group {
            margin-bottom: 18px;
        }

        .form-group label {
            display: block;
            font-size: 12.5px;
            font-weight: 700;
            color: var(--muted);
            margin-bottom: 6px;
        }

        .form-group input {
            width: 100%;
            padding: 13px 14px;
            border-radius: 11px;
            border: 2px solid var(--border);
            font-family: inherit;
            font-size: 14.5px;
        }

        .form-group input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.1);
        }

        .password-wrapper {
            position: relative;
        }

        .password-toggle {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
            display: flex;
        }

        .password-toggle svg {
            width: 18px;
            height: 18px;
            fill: var(--muted);
        }

        .form-row-between {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 22px;
            font-size: 13px;
        }

        .remember-check {
            display: flex;
            align-items: center;
            gap: 7px;
            color: var(--muted);
            font-weight: 500;
            cursor: pointer;
        }

        .remember-check input {
            width: 15px;
            height: 15px;
            accent-color: var(--primary);
            cursor: pointer;
        }

        .forgot-link {
            color: var(--primary-dark);
            font-weight: 700;
            text-decoration: none;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 13px;
            font-family: inherit;
        }

        .forgot-link:hover {
            text-decoration: underline;
        }

        .login-btn {
            width: 100%;
            padding: 15px;
            border-radius: 13px;
            border: none;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            font-weight: 800;
            font-size: 15px;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 22px -6px var(--primary);
        }

        .login-btn:disabled {
            opacity: 0.75;
            cursor: default;
            transform: none;
        }

        .btn-spinner {
            width: 16px;
            height: 16px;
            border: 2.5px solid rgba(255, 255, 255, 0.4);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            display: none;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .login-btn.loading .btn-spinner {
            display: block;
        }

        .login-btn.loading .btn-label {
            display: none;
        }

        .form-error {
            font-size: 12px;
            color: var(--danger);
            margin-top: 6px;
            display: none;
        }

        .form-error.show {
            display: block;
        }

        .auth-divider {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 26px 0;
            color: var(--muted);
            font-size: 12px;
            font-weight: 600;
        }

        .auth-divider::before,
        .auth-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border);
        }

        .auth-footer-text {
            text-align: center;
            font-size: 14px;
            color: var(--muted);
        }

        .auth-footer-text a {
            color: var(--primary-dark);
            font-weight: 700;
            text-decoration: none;
        }

        .auth-footer-text a:hover {
            text-decoration: underline;
        }

        .auth-security {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            margin-top: 26px;
            font-size: 12px;
            color: var(--muted);
        }

        .auth-security svg {
            width: 14px;
            height: 14px;
            fill: var(--success);
        }

        footer {
            text-align: center;
            padding: 24px 20px;
            color: var(--muted);
            font-size: 12.5px;
        }

        footer a {
            color: var(--muted);
        }

        /* ===== Modal mot de passe oublié ===== */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(26, 26, 26, 0.55);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 500;
            padding: 20px;
        }

        .modal-overlay.open {
            display: flex;
        }

        .modal-box {
            background: white;
            border-radius: 22px;
            padding: 32px;
            width: 100%;
            max-width: 420px;
            box-shadow: var(--shadow-lg);
        }

        .modal-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 8px;
        }

        .modal-top h2 {
            font-size: 19px;
            font-weight: 800;
        }

        .modal-close {
            background: var(--beige-light);
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .modal-close svg {
            width: 15px;
            height: 15px;
            fill: var(--muted);
        }

        .modal-sub {
            font-size: 13.5px;
            color: var(--muted);
            line-height: 1.6;
            margin-bottom: 22px;
        }

        .reset-actions {
            display: flex;
            gap: 12px;
            margin-top: 22px;
        }

        .reset-actions button {
            flex: 1;
            padding: 13px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 14px;
            cursor: pointer;
            border: none;
        }

        .btn-keep {
            background: var(--beige-light);
            color: var(--text);
        }

        .btn-confirm {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-confirm.loading .btn-spinner {
            display: block;
        }

        .btn-confirm.loading .btn-label {
            display: none;
        }

        .reset-success {
            display: none;
            text-align: center;
            padding: 6px 0;
        }

        .reset-success.show {
            display: block;
        }

        .reset-success-icon {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: var(--success-light);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px;
        }

        .reset-success-icon svg {
            width: 26px;
            height: 26px;
            fill: var(--success);
        }

        .reset-success h3 {
            font-size: 17px;
            margin-bottom: 8px;
        }

        .reset-success p {
            font-size: 13.5px;
            color: var(--muted);
            line-height: 1.6;
        }

        @media (max-width: 480px) {
            header {
                padding: 16px 24px;
            }

            .auth-card {
                padding: 28px 24px;
            }
        } 