:root {
  color-scheme: light;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #172133;
  background: #f4f6f8;
}
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  background: radial-gradient(ellipse at 50% 0%, #fff0f5, transparent 65%), #f4f6f8;
}
.login-card {
  width: min(100%, 440px);
  padding: 42px 38px 26px;
  background: #fff;
  border: 1px solid #dfe4ea;
  border-radius: 16px;
  box-shadow: 0 14px 46px #1721330a;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: #fff;
  background: #17212e;
  font-size: 24px;
  font-weight: 700;
}
.eyebrow { margin: 24px 0 8px; color: #697588; font-size: 13px; }
h1 { margin: 0; font-size: 28px; line-height: 1.4; letter-spacing: -.5px; }
.description { color: #697588; font-size: 14px; line-height: 1.8; margin: 12px 0 30px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 9px; }
.password-field { position: relative; }
input, button { font: inherit; }
#password {
  width: 100%;
  height: 48px;
  padding: 0 66px 0 14px;
  border: 1px solid #cbd2dc;
  border-radius: 8px;
  background: #fff;
  color: #172133;
  font-size: 16px;
}
#password:focus { outline: 3px solid #e83e7520; border-color: #e83e75; }
button { cursor: pointer; }
button:focus-visible { outline: 3px solid #2d68d8; outline-offset: 3px; }
.reveal {
  position: absolute;
  top: 6px;
  right: 7px;
  padding: 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #697588;
  font-size: 13px;
}
.reveal:hover { background: #f4f6f8; color: #172133; }
.hint { color: #697588; font-size: 12px; margin: 10px 0 0; }
.error { min-height: 20px; color: #c2354d; font-size: 13px; line-height: 1.6; margin: 14px 0; }
.submit {
  width: 100%;
  height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #e83e75;
  font-size: 15px;
  font-weight: 600;
}
.submit:hover { background: #cf2f65; }
.submit:disabled { opacity: .65; cursor: wait; }
footer { text-align: center; margin-top: 28px; color: #697588; font-size: 12px; }
@media (max-width: 420px) {
  .login-card { padding: 30px 24px 22px; }
  h1 { font-size: 26px; }
}
