@charset "UTF-8";
:root {
  color-scheme: light;
  --background: #fafafa;
  --text: #191919;
  --muted: #858585;
  --border: #dedede;
  --field: #fff;
  --focus: #777;
  --button: #202020;
  --button-text: #fff;
  --danger: #b33737;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #111;
    --text: #ededed;
    --muted: #888;
    --border: #343434;
    --field: #181818;
    --focus: #aaa;
    --button: #e8e8e8;
    --button-text: #171717;
    --danger: #ef9494;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #111;
  --text: #ededed;
  --muted: #888;
  --border: #343434;
  --field: #181818;
  --focus: #aaa;
  --button: #e8e8e8;
  --button-text: #171717;
  --danger: #ef9494;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 64px 24px;
  background: var(--background);
  color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .5; cursor: wait; }
[hidden] { display: none !important; }
.login-panel { width: 100%; max-width: 320px; }
header { margin-bottom: 36px; text-align: center; }
.wordmark { margin-bottom: 12px; color: var(--muted); font-size: 14px; letter-spacing: .04em; }
h1 { margin: 0; font-size: 24px; font-weight: 550; letter-spacing: .02em; }
.intro { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.9; text-wrap: pretty; }
.field + .field { margin-top: 20px; }
label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 500; }
input {
  width: 100%; min-width: 0; height: 46px; padding: 0 13px;
  border: 1px solid var(--border); border-radius: 5px;
  background: var(--field); color: var(--text);
  outline: none; transition: border-color .15s;
}
input::placeholder { color: var(--muted); font-size: 13px; }
input:focus { border-color: var(--focus); }
input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--field) inset;
  caret-color: var(--text);
}
.password-wrap { position: relative; }
.password-wrap input { padding-right: 60px; }
#show-password {
  position: absolute; right: 5px; top: 5px;
  min-width: 46px; height: 36px; padding: 0 8px;
  border: 0; border-radius: 3px; background: transparent;
  color: var(--muted); font-size: 12px;
}
#show-password:hover { color: var(--text); }
.submit {
  width: 100%; min-height: 45px; margin-top: 28px; padding: 11px 16px;
  border: 1px solid transparent; border-radius: 5px;
  background: var(--button); color: var(--button-text);
  font-size: 13px; font-weight: 550; letter-spacing: .05em;
}
.submit:hover:not(:disabled) { opacity: .88; }
.support { margin: 24px 0 0; text-align: center; color: var(--muted); font-size: 11px; }
.form-error { margin: 14px 0 0; color: var(--danger); font-size: 12px; }
.theme-toggle {
  position: fixed; top: 22px; right: 22px;
  display: grid; place-items: center; width: 36px; height: 36px;
  padding: 8px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted);
}
.theme-toggle:hover { color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle circle { fill: none; stroke: currentColor; stroke-width: 1.2; }
.theme-toggle path { fill: currentColor; }
button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (max-width: 480px) {
  .theme-toggle { top: 14px; right: 14px; }
  input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
