/* Sign-in / sign-up — same tokens as the site chrome */

:root {
  --bg: #0d0e11;
  --panel: #131519;
  --panel-2: #171a1f;
  --line: #23262d;
  --text: #e6e8ec;
  --dim: #878d99;
  --dimmer: #5d636e;
  --accent: #6ea8fe;
  --bad: #e06c6c;
  --good: #4ec98a;
  --sans: ui-sans-serif, -apple-system, "SF Pro Text", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(110, 168, 254, 0.12), transparent),
    var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.top {
  display: flex; align-items: center; justify-content: space-between;
  height: 44px; padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--text); text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand img { display: block; }
.top-links a {
  padding: 5px 10px; border-radius: 6px;
  color: var(--dim); text-decoration: none; font-weight: 500;
}
.top-links a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }

.auth-shell {
  display: flex;
  justify-content: center;
  padding: 48px 16px 64px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
}
.auth-card h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.auth-card .lead {
  color: var(--dim);
  margin-bottom: 28px;
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--dim);
  letter-spacing: 0.02em;
}
.field input {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
}
.field input::placeholder { color: var(--dimmer); }
.field input:focus { outline: none; border-color: #3a4250; }

.primary {
  border: 1px solid transparent;
  background: var(--accent);
  color: #0b1220;
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  width: 100%;
}
.primary:hover { background: #8bbcff; }
.primary:disabled { opacity: 0.55; cursor: not-allowed; }

.google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 560;
  color: var(--text);
}
.google:hover { background: var(--panel-2); }
.google:disabled { opacity: 0.55; cursor: not-allowed; }
.google svg { width: 18px; height: 18px; flex-shrink: 0; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dimmer);
  font-size: 12px;
  margin: 4px 0;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.msg {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  min-height: 1.2em;
}
.msg.error { color: var(--bad); }
.msg.ok { color: var(--good); }

.switch {
  margin-top: 24px;
  color: var(--dim);
  font-size: 13px;
  text-align: center;
}

.hint {
  margin-top: 10px;
  color: var(--dimmer);
  font-size: 12px;
  line-height: 1.45;
}
