/* Sign-in page: same tokens as the app, no theme toggle before a session exists. */
:root {
  --bg: #fbfbfc;
  --panel: #ffffff;
  --panel-2: #f7f8fa;
  --border: #e7e9ee;
  --border-strong: #d6dae2;
  --text: #0e1116;
  --text-2: #59606d;
  --text-3: #8a93a1;
  --accent: #16a34a;
  --accent-hover: #15903f;
  --danger: #dc2626;
  --danger-weak: #fef2f2;
  --r-sm: 7px;
  --r-lg: 14px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); font-size: 13.5px; line-height: 1.5; }
button, input { font: inherit; color: inherit; }
form { margin: 0; }
h1, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.mark { display: grid; place-content: center; gap: 3px; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 9px; background: var(--accent); }
.mark i { display: block; width: 17px; height: 2px; border-radius: 2px; background: #fff; }
.mark i:nth-child(2) { width: 13px; }
.mark i:nth-child(3) { width: 9px; }

input { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); color: var(--text); background: var(--panel); outline: 0; transition: border-color .12s, box-shadow .12s; }
input::placeholder { color: var(--text-3); }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22, 163, 74, .16); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 12px; border: 1px solid transparent; border-radius: var(--r-sm); background: none; font-size: .82rem; font-weight: 600; line-height: 1; cursor: pointer; transition: background .12s; }
.btn-primary { color: #fff; background: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }
.alert { margin: 0; padding: 10px 12px; border: 1px solid rgba(220, 38, 38, .26); border-radius: var(--r-sm); color: var(--danger); background: var(--danger-weak); font-size: .8rem; }

.auth { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.auth-card { display: grid; gap: 13px; width: min(100%, 380px); padding: 26px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--panel); box-shadow: 0 10px 28px -10px rgba(16, 24, 40, .16); }
.auth-card label { display: grid; gap: 6px; color: var(--text-2); font-size: .74rem; font-weight: 560; }
.auth-submit { width: 100%; min-height: 40px; margin-top: 2px; }
.auth-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.auth-head h1 { font-size: 1.15rem; font-weight: 640; letter-spacing: -.02em; }
.auth-head p { margin-top: 3px; color: var(--text-2); font-size: .78rem; }
.auth-link { color: var(--text-2); font-size: .76rem; text-align: center; text-decoration: none; }
.auth-link:hover { color: var(--text); }
