:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: #eef5f0;
  background: #09110d;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 24px 16px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 0%, #163329, #09110d 66%);
}

.sign-in {
  width: min(100%, 420px);
  padding: clamp(24px, 7vw, 40px);
  border: 1px solid #395447;
  border-radius: 24px;
  background: #111e17;
  box-shadow: 0 24px 80px #0006;
}

h1 {
  margin: 0;
  font-size: clamp(23px, 6vw, 30px);
  line-height: 1.3;
}

.intro {
  margin: 10px 0 28px;
  color: #b7cbbd;
  font-size: 14px;
  line-height: 1.6;
}

label { display: block; margin-bottom: 8px; font-size: 14px; }

input,
button {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  color: inherit;
  font: inherit;
}

input {
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid #597066;
  background: #0c1711;
}

button {
  border: 1px solid #60cda2;
  background: #08764d;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

button:not(:disabled):hover { background: #096447; }
button:disabled { cursor: default; opacity: .7; }

:focus-visible {
  outline: 2px solid #8ef5c9;
  outline-offset: 3px;
}

.error {
  margin: 12px 0 0;
  color: #ffc1b9;
  font-size: 14px;
  line-height: 1.6;
}

.error:empty { margin: 0; }
