/* The sign-in page's look (index.html) - a file of its own: the page's Content-Security-Policy allows no inline style */
:root { color-scheme: dark; --bg: #1e1e1e; --card: #2f2f2f; --border: #555; --input: #1e1e1e; --text: #ddd; --dim: #999;
	--accent: #4da3ff; --accent-hover: #6db4ff; --accent-text: #111; --bad: #ff7a7a; --ok: #6fd38a; --warn: #ffaa55; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 14px system-ui, -apple-system, "Segoe UI", sans-serif; }
main { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 24px 16px; }
.card { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
h1 { margin: 0 0 4px; font-size: 20px; font-weight: 600; }
.logo { display: block; width: 297px; max-width: 80%; height: auto; margin: 0 auto 22px; }
.wrap { width: 100%; max-width: 380px; }
.sub { margin: 0 0 20px; color: var(--dim); font-size: 13px; }
label { display: block; margin: 12px 0 4px; color: var(--dim); font-size: 12px; }
input { width: 100%; padding: 8px 10px; background: var(--input); color: var(--text); border: 1px solid var(--border); border-radius: 4px; font: inherit; }
input:focus { outline: none; border-color: var(--accent); }
button { width: 100%; margin-top: 18px; padding: 9px; background: var(--accent); color: var(--accent-text); border: 0; border-radius: 4px; font: inherit; font-weight: 600; cursor: pointer; }
button:hover { background: var(--accent-hover); }
button:disabled { opacity: .6; cursor: default; }
.msg { margin-top: 14px; padding: 9px 11px; border-radius: 4px; font-size: 13px; line-height: 1.4; display: none; }
.msg.show { display: block; }
.msg.bad { background: rgba(255,122,122,.12); color: var(--bad); }
.msg.ok { background: rgba(111,211,138,.12); color: var(--ok); }
.msg.warn { background: rgba(255,170,85,.12); color: var(--warn); }
.switch { margin-top: 18px; color: var(--dim); font-size: 13px; text-align: center; }
.switch a { color: var(--accent); cursor: pointer; text-decoration: none; }
.hint { color: var(--dim); font-size: 12px; margin-top: 4px; }
[hidden] { display: none !important; }

/* the full-screen loader - the same as web/shell.html's (keep the two in step): shown once signed in, while the browser
   fetches the app's page, which opens with the same screen - no jump, no flash of the card */
#loader { position: fixed; inset: 0; z-index: 10; background: #1e1e1e; display: flex; flex-direction: column; align-items: center;
	justify-content: center; font: 13px system-ui, -apple-system, "Segoe UI", sans-serif; color: #bbb; }
#loader { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#loader img { width: 297px; max-width: 80vw; height: auto; }
#loader .bar { width: 280px; max-width: 70vw; height: 4px; margin-top: 28px; background: #3a3a3a; border-radius: 2px; overflow: hidden; }
#loader .bar i { display: block; height: 100%; width: 0; background: #4da3ff; }
#loader .txt { margin-top: 12px; min-height: 18px; text-align: center; }
#loader .err { margin-top: 4px; max-width: 440px; padding: 0 16px; color: #ff8a8a; text-align: center; line-height: 1.4; }
#loader button { margin-top: 14px; padding: 7px 18px; background: #4da3ff; color: #111; border: 0; border-radius: 4px; font: inherit; font-weight: 600; cursor: pointer; }
.forgot { margin-top: 8px; text-align: right; font-size: 12px; }
.forgot a { color: var(--accent); text-decoration: none; }
.getapp { margin: 16px 0 0; color: var(--dim); font-size: 13px; text-align: center; }
.getapp a { color: var(--accent); text-decoration: none; }
