:root {
  color-scheme: light;
  --paper: #f5f6f1;
  --white: #fff;
  --ink: #16251f;
  --muted: #52625b;
  --line: #d7e0d8;
  --forest: #153b31;
  --fern: #b8d5a6;
  font-family: Geist, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
.layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100dvh; }
.cover {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2.5rem;
  min-width: 0;
  padding: clamp(1.6rem, 5vw, 4.75rem);
  background: var(--forest);
  color: var(--white);
}
.wordmark { display: flex; align-items: center; gap: .75rem; font-weight: 675; letter-spacing: .13em; }
.mark { position: relative; width: 1.95rem; height: 1.5rem; border: 2px solid var(--fern); border-radius: 3px; }
.mark::before { content: ""; position: absolute; top: -.37rem; left: -.125rem; width: .9rem; height: .35rem; border: 2px solid var(--fern); border-bottom: 0; border-radius: 3px 3px 0 0; }
.shelves { position: relative; align-self: center; width: min(100%, 29rem); aspect-ratio: 5 / 4; margin: auto; isolation: isolate; }
.sheet {
  position: absolute;
  inset: 14% 17% 16% 9%;
  background: #deebd3;
  color: var(--forest);
  border-radius: .55rem;
  transform: rotate(-9deg);
}
.sheet::before {
  content: "";
  position: absolute;
  inset: 16% 13% auto;
  height: 2px;
  background: currentColor;
  box-shadow: 0 .8rem 0 currentColor, 0 1.6rem 0 currentColor;
  opacity: .33;
}
.sheet:nth-child(2) { inset: 10% 12% 16% 19%; background: var(--white); transform: rotate(9deg); }
.folder {
  position: absolute;
  inset: 38% 5% 1%;
  background: var(--fern);
  border-radius: .35rem .75rem .75rem .75rem;
  border-bottom: 3px solid #8eb481;
  box-shadow: 0 1.15rem 1.6rem #0c271e4a;
}
.folder::before { content: ""; position: absolute; left: 0; bottom: 100%; width: 34%; height: 14%; background: inherit; border-radius: .42rem .65rem 0 0; }
.folder .band {
  position: absolute;
  right: 8%;
  bottom: 16%;
  width: 31%;
  height: 17%;
  border: 1px solid #52754e;
  border-left-width: 3px;
  border-radius: .15rem;
}
.cover-caption { margin: 0; color: #d1e2ca; font-size: .87rem; letter-spacing: .06em; }
.content { display: grid; place-items: center; padding: clamp(1.75rem, 6vw, 5.5rem); }
.auth { width: min(100%, 23rem); }
.mobile-brand { display: none; }
h1 { margin: 0; font-size: clamp(2rem, 4.3vw, 3.25rem); line-height: 1.18; letter-spacing: -.055em; }
.hint { margin: .85rem 0 2.1rem; color: var(--muted); font-size: .95rem; line-height: 1.65; }
.field { margin-bottom: 1.2rem; }
label { display: block; margin-bottom: .5rem; font-size: .87rem; font-weight: 620; }
input, button { font: inherit; }
input {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: .68rem .82rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid #afc0b5;
  border-radius: .4rem;
}
input::placeholder { color: var(--muted); }
input:focus-visible, button:focus-visible { outline: 2px solid #397c63; outline-offset: 3px; }
.password { position: relative; }
.password input { padding-right: 4.1rem; }
.visibility {
  position: absolute;
  right: .4rem;
  top: .3rem;
  bottom: .3rem;
  min-width: 3.35rem;
  background: none;
  color: var(--forest);
  border: 0;
  border-radius: .25rem;
  cursor: pointer;
  font-size: .82rem;
}
.visibility:hover { background: var(--paper); }
.error { margin: .15rem 0 1rem; padding: .7rem .85rem; background: #fff0e9; color: #892d24; border-left: 3px solid #9f3b2b; font-size: .88rem; line-height: 1.55; }
.submit {
  width: 100%;
  min-height: 3.1rem;
  border: 0;
  border-radius: .4rem;
  background: var(--forest);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem .92rem;
  font-weight: 580;
  cursor: pointer;
}
.submit:hover { background: #245646; }
.submit:disabled { cursor: wait; opacity: .7; }
.help { border-top: 1px solid var(--line); padding-top: 1.05rem; margin: 1.65rem 0 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }
@media (max-width: 625px) {
  .layout { grid-template-columns: 1fr; }
  .cover { display: none; }
  .content { place-items: start center; padding-top: clamp(2.3rem, 11vw, 4.5rem); }
  .mobile-brand { display: flex; margin: 0 0 2.7rem; color: var(--forest); }
  .mobile-brand .mark { border-color: currentColor; }
  .mobile-brand .mark::before { border-color: currentColor; }
}
