
        :root {
            color-scheme: dark;
            --background: #1F2429;
            --foreground: #fafafa;
            --muted-foreground: #a1a1aa;
            --border: #41484F;
            --brand: #FF7A00;
            --brand-light: #FFB36B;
            --ring: #FF7A00;
            --primary-foreground: #1F2429;
            --field: #171B1F;
            --danger: #fda4af;
        }
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html { scrollbar-color: var(--muted-foreground) var(--background); }
        body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 14px; line-height: 1.5; letter-spacing: 0; background: var(--background); color: var(--foreground); }
        .workspace-window-dragbar { position: fixed; top: 0; left: env(titlebar-area-x, 0px); width: env(titlebar-area-width, calc(100% - 148px)); height: 48px; -webkit-app-region: drag; app-region: drag; }
        html.workspace-native-titlebar .login-panel { padding-top: 64px; }
        .login-panel { min-height: 100vh; min-height: 100svh; display: flex; padding: 40px 24px; }
        .login-panel-inner { width: 100%; max-width: 400px; min-width: 0; margin: auto; }
        .mobile-brand { display: block; width: 184px; height: auto; aspect-ratio: 426 / 112; object-fit: contain; margin-bottom: 36px; }
        .login-panel-header { margin-bottom: 28px; }
        .login-panel-header h1 { font-size: 24px; font-weight: 600; line-height: 1.3; }
        .field { margin-bottom: 20px; }
        .field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
        .field-wrap { position: relative; }
        .field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted-foreground); pointer-events: none; }
        .field input { width: 100%; height: 48px; padding: 12px 14px 12px 42px; border: 1px solid var(--border); border-radius: 6px; font: inherit; font-size: 16px; color: var(--foreground); background: var(--field); caret-color: var(--brand); transition: border-color 150ms ease-out; }
        .field input::placeholder { color: var(--muted-foreground); opacity: 1; }
        .field input:hover { border-color: var(--muted-foreground); }
        .field input:focus { outline: 2px solid var(--brand); outline-offset: 2px; border-color: var(--brand); }
        .field input#password { padding-right: 56px; }
        .field input:autofill { box-shadow: 0 0 0 100px var(--field) inset; -webkit-text-fill-color: var(--foreground); }
        .toggle-password { position: absolute; right: 3px; top: 2px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 4px; background: transparent; color: var(--muted-foreground); cursor: pointer; }
        .toggle-password:hover { color: var(--foreground); background: #2B3137; }
        :focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
        .error-message { display: none; align-items: flex-start; gap: 8px; padding: 12px 0; margin-bottom: 16px; color: var(--danger); font-size: 14px; overflow-wrap: anywhere; }
        .error-message.visible { display: flex; }
        .error-message svg { flex-shrink: 0; margin-top: 3px; }
        .login-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; margin-top: 8px; padding: 12px 16px; border: 0; border-radius: 6px; background: var(--brand); color: var(--primary-foreground); font: inherit; font-weight: 600; cursor: pointer; transition: background 150ms ease-out; }
        .login-btn:hover { background: var(--brand-light); }
        .login-btn:active { background: var(--brand); }
        .login-btn:disabled { background: var(--brand-light); cursor: wait; }
        .spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
        @keyframes spin { to { transform: rotate(360deg); } }
        ::selection { background: var(--brand-light); color: var(--primary-foreground); }
        @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

        [hidden] { display: none !important; }
        a { color: var(--brand-light); text-underline-offset: 4px; }
        .recovery-link { display: block; width: fit-content; margin: 20px auto 0; padding: 8px 0; }
        .recovery-description, .field-hint { color: var(--muted-foreground); margin-top: 10px; }
        .field-hint { font-size: 13px; }
        .recovery-field input { padding-left: 14px; }
        .recovery-field input[type=password], .recovery-field input[type=text] { padding-right: 56px; }
        .recovery-status { margin-bottom: 20px; overflow-wrap: anywhere; }
        .recovery-status:empty { display: none; }
        .recovery-status[data-error=true] { color: var(--danger); }

.login-recovery-link { float: right; font-size: 13px; }
