/* Presentation only: Dex owns all forms, provider discovery and OAuth state. */
/* Dark, the workspace's default: the sign-in page cannot know the mode a person chose there. */
:root { color-scheme: dark; --base: #181818; --panel: #222220; --line: #40403e; --text: #f2f2ee; --muted: #b7b7b0; --brand: #0a77a6; }
.theme-body { background: var(--base); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; min-height: 100vh; padding: 16vh 24px 48px; }
.theme-navbar { background: none; box-shadow: none; text-align: center; height: auto; padding: 0; }
.theme-navbar__logo-wrap { display: inline-flex; align-items: center; gap: 12px; width: auto; padding: 0; overflow: visible; }
.theme-navbar__logo-wrap::after { content: "Alplink OS"; font-size: 21px; font-weight: 600; letter-spacing: -.6px; }
.theme-navbar__logo { width: 40px; height: 40px; max-height: none; }
.dex-container { margin: 32px auto 0; max-width: 420px; min-width: 0; color: var(--text); }
.theme-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 40px #0000000c; padding: 32px; text-align: left; }
.theme-heading { margin: 0 0 28px; font-size: 23px; line-height: 1.3; font-weight: 600; letter-spacing: -.6px; }
.theme-form-row { margin-bottom: 20px; }
.theme-form-label { margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.theme-form-input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 13px; background: var(--base); color: var(--text); font: inherit; font-size: 15px; }
.theme-form-input:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.dex-btn { border-radius: 10px; box-shadow: none; font-size: 14px; font-weight: 600; min-height: 44px; transition: background .15s ease, opacity .15s ease; }
.theme-btn--primary { width: 100%; padding: 12px 16px; background: var(--brand); color: white; }
.theme-btn-provider { width: 100%; background: var(--base); border: 1px solid var(--line); color: var(--text); margin-bottom: 10px; }
.dex-btn:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.dex-btn:hover { opacity: .88; }
.dex-subtle-text, .theme-link-back a { color: var(--muted); font-size: 13px; }
.theme-link-back { margin-top: 24px; text-align: center; }
.dex-error-box { padding: 12px; margin-bottom: 16px; border-radius: 8px; border: 1px solid var(--line); color: var(--text); }
@media (max-width: 480px) { .theme-body { padding-top: 10vh; } .theme-panel { padding: 24px; } }
@media (prefers-reduced-motion: reduce) { .dex-btn { transition: none; } }
