        /* Auth pages (login/register): centered card on the flat page
           background. Tokens, body type and toast/button feedback states
           come from base.css and feedback.css — link those first. */

        body {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            background: var(--background);
        }

        .card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--r-lg);
            padding: 40px 36px;
            width: 100%;
            max-width: 400px;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 28px;
        }
        .brand h1 {
            font-size: 22px;
            font-weight: 700;
            letter-spacing: -0.03em;
        }
        .brand-icon {
            width: 32px;
            height: 32px;
            flex-shrink: 0;
        }

        .field {
            margin-bottom: 18px;
        }
        .field label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 6px;
            color: var(--text);
        }
        .field input {
            width: 100%;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--r-sm);
            color: var(--text);
            font: inherit;
            font-size: 15px;
            padding: 10px 12px;
            transition: border-color 120ms ease, box-shadow 120ms ease;
        }
        .field input:focus {
            border-color: var(--focus);
            outline: none;
            box-shadow: 0 0 0 3px color-mix(in oklch, var(--focus) 16%, transparent);
        }
        .field input::placeholder {
            color: var(--muted);
        }
        .field input:disabled {
            cursor: not-allowed;
            opacity: 0.6;
        }

        .btn {
            width: 100%;
            background: var(--active);
            border: 1px solid var(--active);
            border-radius: var(--r-sm);
            color: var(--surface);
            cursor: pointer;
            font: inherit;
            font-size: 15px;
            font-weight: 600;
            padding: 11px 16px;
            transition: opacity 120ms ease;
        }
        .btn:hover { opacity: 0.92; }
        .btn:focus-visible {
            outline: none;
            box-shadow: 0 0 0 3px color-mix(in oklch, var(--focus) 16%, transparent);
        }
        .btn:active {
            filter: brightness(0.96);
            transform: translateY(0.5px);
        }
        .btn:disabled {
            cursor: not-allowed;
            opacity: 0.6;
        }

        .alt {
            text-align: center;
            margin-top: 20px;
            font-size: 14px;
            color: var(--muted);
        }
        .alt a {
            color: var(--active);
            font-weight: 600;
            text-decoration: none;
        }
        .alt a:hover { text-decoration: underline; }

        .error {
            background: var(--danger-bg);
            border: 1px solid var(--danger-border);
            border-radius: var(--r-sm);
            color: var(--danger);
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 18px;
            padding: 10px 12px;
        }
