/* The sign-in page. Same palette and type as the chat page (tokens.css); this file adds the few login-only tokens. */
:root {
  --field: #FAF9F6;
  --shadow: 0 1px 2px rgba(40, 30, 20, .04), 0 8px 28px rgba(40, 30, 20, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --field: #1F1E1C;
    --hover: #34322E;
    --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 8px 28px rgba(0, 0, 0, .3);
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 15px/1.5 var(--ui);
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.wrap {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 8vh;
}
.heading { text-align: center; }
.heading h1 {
  font-family: var(--prose);
  font-weight: 400;
  font-size: 34px;
  letter-spacing: -.01em;
  margin: 0 0 6px;
}
.heading p { margin: 0; color: var(--muted); }
form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 13.5px; font-weight: 500; }
.input-wrap { position: relative; }
input {
  width: 100%;
  font: 15px/1.4 var(--ui);
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
#password { padding-right: 64px; }
.toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 13px var(--ui);
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.toggle:hover { background: var(--hover); color: var(--text); }
.toggle:focus-visible, .submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.submit {
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 15px var(--ui);
  padding: 11px 16px;
  cursor: pointer;
}
.submit:hover { background: var(--accent-hover); }
.error {
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  margin: 0;
}
.foot { text-align: center; font-size: 12.5px; color: var(--faint); margin: 0; }
