:root {
  color-scheme: light;
  --paper: #f6f3f7;
  --sheet: #fffdfd;
  --ink: #211827;
  --muted: #62576a;
  --violet: #4d0099;
  --focus: #995d04;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  justify-items: center;
  align-content: start;
  padding: clamp(52px, 14vh, 148px) 24px 40px;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.45 system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.entry { width: min(100%, 352px); }
.identity { text-align: center; margin-bottom: 38px; }
.identity img { display: block; margin: 0 auto 22px; }
h1 { font-size: clamp(1.23rem, 5.5vw, 1.65rem); line-height: 1.25; margin: 0; }
.identity p { color: var(--muted); font-size: .94rem; margin: 7px 0 0; }
.fields {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  background: var(--sheet);
  border-radius: 12px;
  padding-inline: 14px 8px;
}
.fields > :nth-child(-n + 2) { border-bottom: 1px solid #e8dfee; }
.fields > label { display: flex; align-items: center; min-height: 56px; font-weight: 600; }
input, button { font: inherit; color: inherit; }
input { width: 100%; min-height: 56px; background: transparent; border: 0; border-radius: 0; padding: 10px 4px; }
.password-field { position: relative; }
.password-field input { padding-inline-end: 53px; }
#reveal {
  position: absolute;
  inset: 4px 0 4px auto;
  min-width: 49px;
  border: 0;
  background: transparent;
  color: var(--violet);
  font-size: .88rem;
}
#submit {
  width: 100%;
  min-height: 51px;
  margin-top: 20px;
  border: 0;
  border-radius: 10px;
  background: var(--violet);
  color: var(--sheet);
  font-weight: 650;
}
button { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
#feedback { color: #87274b; font-size: .91rem; margin: 9px 0 0; }
#feedback:empty { display: none; }
#feedback.success { color: #246149; }
.entry-note { color: var(--muted); text-align: center; margin: 19px 0 0; font-size: .87rem; }
a.entry-note { display: block; min-height: 44px; padding-block: 10px; color: var(--violet); }
[hidden] { display: none !important; }
@media (min-width: 651px) and (min-height: 640px) {
  body { align-content: center; padding-block: 36px 80px; }
}
@media (max-height: 550px) {
  body { padding-top: 30px; }
  .identity { margin-bottom: 24px; }
  .identity img { width: 55px; height: 55px; margin-bottom: 15px; }
}
