/* home-dashboard: look 2, the instrument panel, from the approved mockup (design\mockup.html).
   Phase 1 carries what the sign-in pages use; Phase 2 brings the rest of the mockup's stylesheet. */

/* D-DIN for words, Cascadia Mono for numbers (Build Plan ruling 4); each license is beside its font. */
@font-face { font-family: "D-DIN"; src: url("../fonts/D-DIN.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "D-DIN"; src: url("../fonts/D-DIN-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cascadia Mono"; src: url("../fonts/CascadiaMono.ttf") format("truetype"); font-display: swap; }

/* Dark unless the device asks for light. Phase 2 adds each device's own Auto/Light/Dark choice. */
:root { --bg:#101419; --panel:#161c23; --sub:#131920; --line:#27303b; --line2:#2c3542; --text:#dfe6ee; --hi:#f1f5f9; --mid:#9aa6b4; --dim:#7f8c9a; --acc:#5cc8d6; --accInk:#0b1015; --field:#171d24; --amberBg:rgba(217,154,30,.09); --amberLine:#7c6230; --orangeBg:rgba(226,105,43,.11); --orangeLine:#8c4c2e; --amberTx:#e7b85a; --orangeTx:#f08a4e; --track:#26303b; --shadow:rgba(0,0,0,.5); }
@media (prefers-color-scheme: light) {
  :root { --bg:#eceff3; --panel:#ffffff; --sub:#f5f7fa; --line:#d3d9e1; --line2:#c3cbd5; --text:#1c2530; --hi:#0f1720; --mid:#4b5664; --dim:#6c7886; --acc:#0e7c8a; --accInk:#ffffff; --field:#ffffff; --amberBg:#fffaf0; --amberLine:#e7c27a; --orangeBg:#fff5ef; --orangeLine:#eea077; --amberTx:#a8700b; --orangeTx:#c2531b; --track:#dde3ea; --shadow:rgba(15,23,32,.25); }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: "D-DIN", Bahnschrift, "Segoe UI", sans-serif; }
.mono { font-family: "Cascadia Mono", Consolas, monospace; }
[hidden] { display: none !important; }

/* the mark: a dial and HOME */
.mark { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 700; letter-spacing: 4px; color: var(--hi); }
.mark svg { width: 24px; height: 24px; flex: none; }
.mark circle, .mark line { fill: none; stroke: var(--acc); stroke-width: 2.2; stroke-linecap: round; }

/* buttons: one cyan for things you can press */
.b { display: inline-block; font: 10.5px "D-DIN", Bahnschrift, "Segoe UI", sans-serif; letter-spacing: 1.4px; text-transform: uppercase; text-decoration: none; border: 1px solid var(--acc); color: var(--acc); border-radius: 4px; padding: 4px 9px; cursor: pointer; white-space: nowrap; background: transparent; }
.b.f { background: var(--acc); color: var(--accInk); }
.b:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.b:disabled { opacity: .6; cursor: wait; }

.note { font-size: 12.5px; color: var(--mid); line-height: 1.5; }
.problem { color: var(--amberTx); background: var(--amberBg); border: 1px solid var(--amberLine); border-radius: 6px; padding: 8px 12px; }

/* the sign-in pages: everything centered on the bare background */
.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 30px; text-align: center; }
.center form { margin: 0; }
.center .mark { font-size: 30px; letter-spacing: 6px; }
.center .mark svg { width: 34px; height: 34px; }
.center .note { max-width: 340px; margin: 0; }
.center .b { font-size: 12.5px; padding: 10px 18px; letter-spacing: 1.8px; }
.center .lead { font-size: 15px; color: var(--hi); margin: 0; max-width: 340px; line-height: 1.5; }
.center .fine { font-size: 11.5px; color: var(--dim); }

@media (max-width: 600px) {
  .center .mark svg { width: 30px; height: 30px; }
}
