

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Inter', 'Segoe UI', sans-serif;
        }

        body {
            background-color: var(--bg-body);
            color: var(--text-color);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px 16px;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        /* Neutralisation de l'autofill forcé (Gboard / WebKit) */
        input:-webkit-autofill,
        input:-webkit-autofill:hover,
        input:-webkit-autofill:focus,
        input:-webkit-autofill:active,
        select:-webkit-autofill,
        select:-webkit-autofill:hover,
        select:-webkit-autofill:focus {
            -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
            box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
            -webkit-text-fill-color: var(--text-color) !important;
            color: var(--text-color) !important;
            caret-color: var(--text-color) !important;
            transition: background-color 5000s ease-in-out 0s;
        }

        .auth-container {
            width: 100%;
            max-width: 470px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            padding: 32px 28px;
            box-shadow: var(--shadow-card);
            position: relative;
            transition: all 0.3s ease;
        }

        .theme-toggle-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            border: 1px solid var(--border-color);
            background: var(--input-bg);
            color: var(--text-color);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            transition: transform 0.2s ease, background 0.2s ease;
        }
        .theme-toggle-btn:hover {
            transform: scale(1.08);
        }

        .logo-wrap {
            text-align: center;
            margin-bottom: 12px;
        }
        .logo-wrap img {
            max-width: 140px;
            height: auto;
            object-fit: contain;
        }

        h1, h2 {
            font-size: 1.55rem;
            font-weight: 800;
            text-align: center;
            color: var(--text-color);
            margin-bottom: 6px;
            letter-spacing: -0.02em;
        }

        .subtitle {
            text-align: center;
            color: var(--text-secondary);
            font-size: 0.92rem;
            margin-bottom: 24px;
            line-height: 1.45;
        }

        .sponsor-badge {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 14px;
            background: var(--bg-input);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            color: var(--text-color);
            font-size: 0.88rem;
            font-weight: 600;
            margin-bottom: 20px;
            text-align: center;
        }
        .sponsor-badge strong {
            color: var(--accent-color);
        }

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

        label {
            display: block;
            margin-bottom: 7px;
            color: var(--text-color);
            font-size: 0.88rem;
            font-weight: 700;
        }

        .input-wrap {
            position: relative;
            display: flex;
            align-items: center;
        }

        input[type="text"],
        input[type="email"],
        input[type="password"],
        input[type="tel"] {
            width: 100%;
            min-height: 50px;
            padding: 12px 16px;
            border-radius: 14px;
            border: 1px solid var(--border-color);
            background: var(--input-bg);
            color: var(--text-color);
            font-size: 0.96rem;
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        input:focus {
            border-color: var(--accent-color);
            box-shadow: none;
        }

        /* --- PHONE PRO INPUT --- */
        .phone-input-group {
            display: grid;
            grid-template-columns: 130px 1fr;
            gap: 8px;
            width: 100%;
        }

        .country-select-wrap {
            position: relative;
            display: flex;
            align-items: center;
        }

        .country-select {
            width: 100%;
            min-height: 50px;
            padding: 10px 12px;
            border-radius: 14px;
            border: 1px solid var(--border-color);
            background: var(--input-bg);
            color: var(--text-color);
            font-size: 0.9rem;
            font-weight: 700;
            cursor: pointer;
            outline: none;
            appearance: none;
            -webkit-appearance: none;
            transition: border-color 0.2s ease;
        }
        .country-select:focus {
            border-color: var(--accent-color);
        }
        .country-select-wrap::after {
            content: '▼';
            font-size: 0.65rem;
            color: var(--text-secondary);
            position: absolute;
            right: 12px;
            pointer-events: none;
        }

        .password-toggle-btn {
            position: absolute;
            right: 14px;
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 1.15rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 4px;
        }

        .btn-submit {
            width: 100%;
            min-height: 52px;
            padding: 14px;
            margin-top: 10px;
            border: none;
            border-radius: 14px;
            background: var(--accent-gradient);
            color: var(--text-primary);
            font-size: 1rem;
            font-weight: 800;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: none;
            transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
        }
        .btn-submit:hover {
            transform: translateY(-1px);
            box-shadow: none;
        }
        .btn-submit:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .alert {
            padding: 12px 16px;
            border-radius: 14px;
            font-size: 0.9rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 20px;
            line-height: 1.4;
        }
        .alert.error {
            background: var(--danger-soft);
            color: var(--danger);
            border: 1px solid var(--border-color);
        }
        .alert.success {
            background: var(--success-soft);
            color: var(--success);
            border: 1px solid var(--border-color);
        }

        .auth-footer-link {
            text-align: center;
            margin-top: 24px;
            font-size: 0.9rem;
            color: var(--text-secondary);
        }
        .auth-footer-link a {
            color: var(--accent-color);
            text-decoration: none;
            font-weight: 700;
            margin-left: 4px;
            transition: text-decoration 0.2s ease;
        }
        .auth-footer-link a:hover {
            text-decoration: underline;
        }

        /* --- MODALE OTP PROFESSIONNELLE --- */
        .otp-modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: var(--bg-input);
            backdrop-filter: blur(8px);
            z-index: 99999;
            align-items: center;
            justify-content: center;
            padding: 16px;
            box-sizing: border-box;
            animation: fadeIn 0.25s ease;
        }
        .otp-modal-overlay.show {
            display: flex;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .otp-modal-card {
            width: 100%;
            max-width: 440px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            padding: 32px 24px;
            box-shadow: none;
            text-align: center;
            position: relative;
            animation: scaleUp 0.25s ease;
        }

        @keyframes scaleUp {
            from { transform: scale(0.92); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        .otp-badge-icon {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: var(--bg-input);
            border: 1px solid var(--border-color);
            display: grid;
            place-items: center;
            font-size: 28px;
            margin: 0 auto 16px;
            color: var(--accent-color);
        }

        .otp-modal-title {
            font-size: 1.35rem;
            font-weight: 800;
            color: var(--text-color);
            margin-bottom: 8px;
        }

        .otp-modal-desc {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-bottom: 24px;
            line-height: 1.5;
        }
        .otp-modal-desc strong {
            color: var(--text-color);
            word-break: break-all;
        }

        /* 6 CASES OTP */
        .otp-boxes-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 8px;
            margin: 0 auto 20px;
            max-width: 360px;
        }

        .otp-box {
            width: 100%;
            height: 56px;
            border-radius: 14px;
            border: 2px solid var(--border-color);
            background: var(--input-bg);
            color: var(--text-color);
            font-size: 1.45rem;
            font-weight: 800;
            text-align: center;
            outline: none;
            transition: all 0.2s ease;
        }
        .otp-box:focus {
            border-color: var(--accent-color);
            box-shadow: none;
            transform: translateY(-2px);
        }
        .otp-boxes-grid.shake {
            animation: shake 0.4s ease;
        }
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20%, 60% { transform: translateX(-8px); }
            40%, 80% { transform: translateX(8px); }
        }

        .otp-timer-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-size: 0.88rem;
            color: var(--text-secondary);
            margin-bottom: 20px;
            font-weight: 600;
        }
        .otp-timer-badge {
            color: var(--accent-color);
            font-weight: 800;
            font-family: monospace;
            font-size: 1rem;
        }

        .btn-resend-otp {
            background: none;
            border: none;
            color: var(--accent-color);
            font-size: 0.88rem;
            font-weight: 700;
            cursor: pointer;
            padding: 6px 12px;
            border-radius: 8px;
            transition: opacity 0.2s ease, text-decoration 0.2s ease;
        }
        .btn-resend-otp:disabled {
            color: var(--text-secondary);
            opacity: 0.5;
            cursor: not-allowed;
        }
        .btn-resend-otp:not(:disabled):hover {
            text-decoration: underline;
        }

        .otp-modal-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 10px;
        }

        .btn-cancel-otp {
            background: none;
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            padding: 12px;
            border-radius: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: color 0.2s ease, background 0.2s ease;
        }
        .btn-cancel-otp:hover {
            background: var(--input-bg);
            color: var(--text-color);
        }
