:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #e6eeec;
  background: #0b1316;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; touch-action: manipulation; }
.login-shell {
  width: min(100% - 48px, 400px);
  margin: auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 40px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: .02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #38584e;
  border-radius: 10px;
  color: #8ad4b5;
  font-size: 23px;
  font-weight: 600;
}
.brand small {
  display: block;
  color: #94a8aa;
  font-size: 9px;
  letter-spacing: .16em;
  font-weight: 500;
  margin-top: 7px;
}
.login-panel {
  padding: 32px;
  border: 1px solid #294047;
  background: #101c20;
  border-radius: 12px;
}
h1 { margin: 0 0 30px; font-size: 25px; font-weight: 600; letter-spacing: -.03em; }
.login-notice { margin: -12px 0 24px; color: #8ad4b5; font-size: 13px; line-height: 1.6; }
.login-notice[hidden] { display: none; }
.field { margin-bottom: 22px; }
.field label { display: block; margin-bottom: 10px; color: #c6d3d0; font-size: 14px; }
.field input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #45605e;
  border-radius: 6px;
  background: #0b1519;
  color: #e6eeec;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: #8ad4b5; box-shadow: 0 0 0 3px #8ad4b51a; }
.show-password {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #a9bcb7;
  font-size: 13px;
  cursor: pointer;
  margin: -3px 0 26px;
}
.show-password input { accent-color: #8ad4b5; width: 16px; height: 16px; margin: 0; }
.error { font-size: 13px; line-height: 1.6; color: #ffaaa4; margin: 0 0 18px; overflow-wrap: anywhere; }
.error[hidden] { display: none; }
.field .error { margin: 8px 0 0; }
button {
  display: block;
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #8ad4b5;
  color: #10241d;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s;
}
button:hover { background: #a2e0c4; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .65; cursor: wait; }
button:focus-visible, .show-password input:focus-visible { outline: 2px solid #b4ecd4; outline-offset: 4px; }
.account-link { display: block; margin-top: 22px; color: #a9bcb7; font-size: 13px; text-align: center; text-underline-offset: 4px; }
.account-link:hover { color: #8ad4b5; }
.account-link:focus-visible { outline: 2px solid #b4ecd4; outline-offset: 4px; }
@media (max-width: 480px) {
  .login-shell { width: min(100% - 36px, 400px); padding: 36px 0; justify-content: center; }
  .brand { margin-bottom: 30px; }
  .login-panel { padding: 26px 23px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
