:root {
  color-scheme: dark;
  background: #111110;
  color: #f3f0e8;
  font: 16px/1.55 "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
}
main {
  width: min(100%, 368px);
  padding: clamp(22px, 8vw, 34px);
  border-radius: 16px;
  background: #1b1b18;
}
img { display: block; border-radius: 12px; }
h1 { font-size: 26px; margin: 14px 0 24px; letter-spacing: -0.02em; }
form { display: grid; gap: 10px; }
form > label { font-size: 14px; color: #cbc6ba; }
input, button { font: inherit; }
#password {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  color: inherit;
  background: #0e0e0d;
}
.remember { display: flex; align-items: center; gap: 9px; min-height: 44px; cursor: pointer; }
.remember input { width: 18px; height: 18px; margin: 0; accent-color: #f2efe7; }
button {
  min-height: 48px;
  color: #111110;
  background: #f2efe7;
  border: 0;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: #fff; }
button:disabled { opacity: 0.55; cursor: wait; }
:focus-visible { outline: 2px solid #ef977e; outline-offset: 2px; }
#error { color: #ffa995; font-size: 14px; margin: 0 0 4px; }
