:root {
  color-scheme: light;
  --paper: #f5f6ef;
  --ink: #172d24;
  --muted: #4f6055;
  --leaf: #254e3b;
  --rule: #b7c3b6;
  --field: #fffefa;
  font-family: 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }

.layout {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  padding: clamp(18px, 2.3vw, 40px);
}

.workspace {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: #30463b;
  border-radius: 6px 24px 6px 6px;
}

.workspace img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 56%;
}

.workspace::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(150deg, rgb(14 28 21 / 74%) 0%, transparent 43%);
}

.wordmark {
  position: absolute;
  z-index: 1;
  top: clamp(23px, 3vw, 49px);
  left: clamp(23px, 3vw, 49px);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #ffffff;
  font: 800 clamp(26px, 3vw, 44px)/1 system-ui, sans-serif;
  letter-spacing: -.07em;
}

.wordmark span {
  width: .15em;
  height: .15em;
  background: #c4dc9c;
  border-radius: 1px;
}

.entry {
  display: grid;
  place-items: center;
  padding: 48px clamp(30px, 5vw, 86px);
}

.entry-content { width: min(100%, 370px); }

h1 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -.045em;
}

.intro {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
}

form { margin-top: 38px; }
.field + .field { margin-top: 21px; }

label {
  display: block;
  margin-bottom: 8px;
  font-size: .875rem;
  font-weight: 650;
}

.field input {
  display: block;
  width: 100%;
  height: 53px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--field);
  color: var(--ink);
}

button:focus-visible, .field input:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
}

.password-field { position: relative; }
.password-field input { padding-right: 72px; }

.password-toggle {
  position: absolute;
  inset: 6px 7px 6px auto;
  width: 57px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--leaf);
  font-size: .82rem;
  font-weight: 650;
  cursor: pointer;
}

.password-toggle:hover { background: #e8eee3; }

.submit {
  display: block;
  width: 100%;
  min-height: 53px;
  margin-top: 29px;
  border: 1px solid var(--leaf);
  border-radius: 7px;
  background: var(--leaf);
  color: #ffffff;
  font-weight: 650;
  cursor: pointer;
}

.submit:hover { background: #193d2e; }

.notice {
  margin: 16px 0 0;
  padding: 8px 12px;
  border-left: 2px solid #a65541;
  background: #f4e8df;
  color: #7b3123;
  font-size: .875rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(144px, 39vw, 236px) 1fr;
    padding: 12px;
  }

  .workspace { min-height: 0; border-radius: 5px 16px 5px 5px; }
  .workspace img { object-position: center 49%; }
  .wordmark { top: 20px; left: 20px; }
  .entry { align-items: start; padding: 37px clamp(12px, 5vw, 30px) 40px; }
  form { margin-top: 28px; }
}
