        :root {
            --monaco-red: #7B1535;
            --monaco-red-dark: #590021;
            --monaco-red-light: rgba(123,21,53,0.1);
            --white: #ffffff;
            --off-white: #fdf8f9;
            --text-dark: #1c1b1c;
            --text-muted: #564245;
            --outline: #897174;
            --silver-dark: #dcc0c3;
            --silver-light: #f7f2f3;
            --success: #10B981;
            --warning: #F59E0B;
        }

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

        body {
            font-family: 'Inter', sans-serif;
            background: #ffffff;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

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

        /* Logo */
        .brand {
            text-align: center;
            margin-bottom: 32px;
        }

        .brand-logo {
            width: 140px;
            height: 140px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0px;
        }

        .brand-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .brand p {
            font-size: 14px;
            font-weight: 600;
            color: #564245;
            margin-top: 4px;
        }

        /* Card */
        .card {
            background: linear-gradient(135deg, var(--monaco-red), var(--monaco-red-dark));
            border: none;
            border-radius: 24px;
            padding: 32px;
            box-shadow: 0 16px 40px rgba(89,0,33,0.25);
            color: white;
        }

        /* Role Selector — Step 1 */
        #step-choose { display: block; }
        #step-family { display: none; }
        #step-pro { display: none; }

        .step-title {
            font-size: 18px;
            font-weight: 700;
            color: white;
            margin-bottom: 8px;
            text-align: center;
        }

        .step-subtitle {
            font-size: 13px;
            color: rgba(255,255,255,0.7);
            text-align: center;
            margin-bottom: 24px;
            line-height: 1.6;
        }

        .role-btn {
            width: 100%;
            padding: 18px 20px;
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 16px;
            background: rgba(255,255,255,0.06);
            color: white;
            font-family: 'Inter', sans-serif;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 16px;
            transition: all 0.2s ease;
            margin-bottom: 12px;
        }

        .role-btn:hover {
            background: rgba(255,255,255,0.12);
            border-color: rgba(255,255,255,0.3);
            transform: translateY(-1px);
        }

        .role-btn:last-child { margin-bottom: 0; }

        .role-icon {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }

        .role-icon.family { background: rgba(255,255,255,0.2); color: white; }
        .role-icon.pro { background: rgba(255,255,255,0.2); color: white; }

        .role-btn-text {
            text-align: left;
            flex: 1;
        }

        .role-btn-text small {
            display: block;
            font-size: 11px;
            font-weight: 400;
            color: rgba(255,255,255,0.6);
            margin-top: 2px;
        }

        .role-btn-text .chevron {
            margin-left: auto;
            color: rgba(255,255,255,0.4);
            font-size: 12px;
        }

        /* Form Elements */
        .form-group {
            margin-bottom: 16px;
        }

        .form-label {
            display: block;
            font-size: 12px;
            font-weight: 700;
            color: rgba(255,255,255,0.8);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .form-input {
            width: 100%;
            padding: 14px 16px;
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 12px;
            color: white;
            font-family: 'Inter', sans-serif;
            font-size: 15px;
            transition: all 0.2s ease;
            outline: none;
        }

        .form-input::placeholder { color: rgba(255,255,255,0.4); }
        .form-input:focus {
            border-color: rgba(255,255,255,0.8);
            background: rgba(255,255,255,0.15);
            box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
        }

        .input-group {
            position: relative;
        }

        .input-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255,255,255,0.5);
            font-size: 14px;
        }

        .input-group .form-input {
            padding-left: 42px;
        }

        .form-input-code {
            text-align: center;
            font-size: 22px;
            font-weight: 700;
            letter-spacing: 8px;
            text-transform: uppercase;
        }

        /* Tabs */
        .pro-tabs {
            display: flex;
            background: rgba(255,255,255,0.1);
            border-radius: 12px;
            padding: 4px;
            margin-bottom: 24px;
            gap: 4px;
        }

        .pro-tab {
            flex: 1;
            padding: 10px;
            border: none;
            border-radius: 9px;
            background: transparent;
            color: rgba(255,255,255,0.7);
            font-family: 'Inter', sans-serif;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .pro-tab.active {
            background: white;
            color: var(--monaco-red);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        /* Primary Button */
        .btn-primary {
            width: 100%;
            padding: 16px;
            background: white;
            border: none;
            border-radius: 14px;
            color: var(--monaco-red);
            font-family: 'Inter', sans-serif;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
            margin-top: 8px;
        }

        .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 12px 32px rgba(0,0,0,0.25);
            background: #fdf8f9;
        }

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

        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        /* Back link */
        .back-link {
            display: flex;
            align-items: center;
            gap: 8px;
            color: rgba(255,255,255,0.7);
            font-size: 13px;
            cursor: pointer;
            margin-bottom: 20px;
            transition: color 0.2s;
            background: none;
            border: none;
            font-family: 'Inter', sans-serif;
        }

        .back-link:hover { color: white; }

        /* Demo code hint */
        .code-hint {
            background: rgba(16,185,129,0.1);
            border: 1px solid rgba(16,185,129,0.25);
            border-radius: 10px;
            padding: 12px 16px;
            margin-bottom: 20px;
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }

        .code-hint i { color: #10B981; font-size: 14px; margin-top: 2px; flex-shrink: 0; }
        .code-hint p { font-size: 12px; color: rgba(255,255,255,0.8); line-height: 1.5; }
        .code-hint strong { color: white; }

        /* Checkbox */
        .checkbox-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 12px 0;
        }

        .checkbox-row input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: var(--monaco-red);
            cursor: pointer;
        }

        .checkbox-row label {
            font-size: 13px;
            color: rgba(255,255,255,0.8);
            cursor: pointer;
        }

        /* Separator */
        .separator {
            position: relative;
            text-align: center;
            margin: 20px 0;
        }

        .separator::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: rgba(255,255,255,0.2);
        }

        .separator span {
            position: relative;
            background: var(--monaco-red-dark);
            border-radius: 4px;
            padding: 0 12px;
            font-size: 12px;
            color: rgba(255,255,255,0.8);
        }

        /* Feedback */
        .feedback {
            display: none;
            padding: 12px 16px;
            border-radius: 10px;
            font-size: 13px;
            margin-top: 12px;
            line-height: 1.5;
        }

        .feedback.error {
            background: rgba(239,68,68,0.15);
            border: 1px solid rgba(239,68,68,0.3);
            color: #FCA5A5;
        }

        .feedback.success {
            background: rgba(16,185,129,0.15);
            border: 1px solid rgba(16,185,129,0.3);
            color: #6EE7B7;
        }

        .feedback.show { display: block; }

        /* Loading spinner */
        .spinner {
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255,255,255,0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
            display: inline-block;
            vertical-align: middle;
            margin-right: 8px;
        }

        @keyframes spin { to { transform: rotate(360deg); } }

        /* Modal CGU */
        .modal-overlay {
            display: none;
            position: fixed; top:0; left:0; right:0; bottom:0;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(4px);
            z-index: 999;
            align-items: center; justify-content: center;
        }
        .modal-content {
            background: var(--monaco-surface);
            border-radius: 20px;
            width: 90%; max-width: 500px; max-height: 80vh;
            padding: 24px;
            overflow-y: auto;
            color: rgba(255,255,255,0.9);
            position: relative;
        }
        .modal-close {
            position: absolute; top: 16px; right: 16px;
            background: rgba(255,255,255,0.1); border: none; border-radius: 50%;
            width: 32px; height: 32px; color: white; cursor: pointer;
        }
        .modal-content h3 { color: white; margin-bottom: 16px; }
        .modal-content p { font-size: 13px; line-height: 1.6; margin-bottom: 12px; color: rgba(255,255,255,0.7); }

        /* Footer */
        .login-footer {
            text-align: center;
            margin-top: 20px;
            font-size: 11px;
            color: #897174;
            width: 100%;
            max-width: 420px;
        }

        .login-footer a { color: #7B1535; text-decoration: none; font-weight: 600; display: block; margin-bottom: 6px; }
        .login-footer a:hover { color: #590021; }
