:root {
  --paper: #fffefe;
  --cream: #fff9fb;
  --rose: #9f4865;
  --rose-dark: #6e2c43;
  --rose-soft: #ffd6e7;
  --mint: #cceee8;
  --ink: #25171d;
  --muted: #7d6670;
  --step: polygon(0 9px, 9px 9px, 9px 0, calc(100% - 9px) 0, calc(100% - 9px) 9px, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 9px calc(100% - 9px), 0 calc(100% - 9px));
  color: var(--ink);
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 20%, rgba(159, 72, 101, 0.17) 0 2px, transparent 3px),
    radial-gradient(circle at 83% 76%, rgba(77, 128, 119, 0.16) 0 2px, transparent 3px),
    linear-gradient(135deg, #fff7fa, #fffdf6 54%, #f3fffc);
  background-size: 37px 37px, 49px 49px, auto;
}
button, input { font: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid #4d8077; outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.login-stage { display: grid; min-height: 100dvh; place-items: center; padding: 28px; position: relative; overflow: hidden; }
.doodle { position: fixed; color: rgba(159, 72, 101, 0.34); font: 700 26px "Space Mono", monospace; }
.doodle-one { top: 8vh; right: 10vw; }
.doodle-two { bottom: 9vh; left: 9vw; color: rgba(77, 128, 119, 0.3); }
.login-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(300px, 1.1fr);
  width: min(880px, 100%);
  overflow: hidden;
  border: 1px solid rgba(110, 44, 67, 0.24);
  clip-path: var(--step);
  background: var(--paper);
  box-shadow: 11px 11px 0 rgba(110, 44, 67, 0.22);
}
.portrait-side { display: grid; align-content: center; padding: clamp(28px, 5vw, 54px); background: linear-gradient(160deg, var(--rose-soft), #fff0f6 62%, var(--mint)); text-align: center; }
.portrait-label { color: var(--rose-dark); font: 700 9px/1.5 "Space Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.corgi-frame { width: min(250px, 100%); aspect-ratio: 1; margin: 20px auto; padding: 10px; clip-path: var(--step); background: var(--paper); box-shadow: 7px 7px 0 rgba(110, 44, 67, 0.25); transform: rotate(-2deg); }
.corgi-frame img { width: 100%; height: 100%; object-fit: cover; clip-path: var(--step); }
.portrait-side p { max-width: 310px; margin: 3px auto 0; color: var(--rose-dark); font-size: 11px; line-height: 1.65; }
.form-side { align-self: center; padding: clamp(34px, 7vw, 72px); }
.eyebrow { color: var(--rose); font: 700 10px/1.4 "Space Mono", monospace; letter-spacing: 0.13em; text-transform: uppercase; }
h1 { margin: 12px 0 15px; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -0.055em; }
.form-intro { max-width: 390px; margin: 0 0 27px; color: var(--muted); font-size: 12px; line-height: 1.65; }
label { display: block; margin: 0 0 7px 3px; color: var(--rose-dark); font-size: 11px; font-weight: 800; }
.password-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border: 1px solid rgba(110, 44, 67, 0.28); clip-path: var(--step); background: #fffafd; box-shadow: 4px 4px 0 rgba(110, 44, 67, 0.13); }
.password-box:focus-within { border-color: var(--rose); box-shadow: 4px 4px 0 rgba(159, 72, 101, 0.25); }
.password-box input { width: 100%; min-width: 0; height: 52px; padding: 0 14px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.password-box button { align-self: stretch; padding: 0 13px; border: 0; background: transparent; color: var(--rose); cursor: pointer; font-size: 9px; font-weight: 800; }
.login-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; margin-top: 16px; padding: 0 17px; border: 0; clip-path: var(--step); background: var(--rose); box-shadow: 5px 5px 0 var(--rose-dark); color: white; cursor: pointer; font-size: 12px; font-weight: 800; }
.login-button:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--rose-dark); }
.login-button:disabled { cursor: wait; opacity: 0.65; }
.login-button b { font: 700 18px "Space Mono", monospace; }
.login-error { margin: 12px 2px 0; padding: 9px 11px; border-left: 3px solid #c76070; background: #fff0f1; color: #8b3544; font-size: 10px; line-height: 1.5; }
.private-note { margin: 20px 0 0; color: var(--muted); font-size: 9px; }
.private-note span { margin-right: 5px; color: #dc7da1; }
@media (max-width: 720px) {
  .login-stage { padding: 16px; }
  .login-card { grid-template-columns: 1fr; box-shadow: 7px 7px 0 rgba(110, 44, 67, 0.2); }
  .portrait-side { grid-template-columns: 86px 1fr; gap: 14px; align-items: center; padding: 18px 22px; text-align: left; }
  .portrait-label { grid-column: 1 / -1; }
  .corgi-frame { width: 82px; margin: 0; padding: 5px; box-shadow: 4px 4px 0 rgba(110, 44, 67, 0.22); }
  .portrait-side p { margin: 0; font-size: 10px; }
  .form-side { padding: 31px 25px 35px; }
  h1 { font-size: clamp(33px, 11vw, 46px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.001ms !important; } }
