:root {
  color-scheme: light;
  --ink: #19342f;
  --ink-soft: #60736d;
  --forest: #173f3b;
  --forest-2: #24645b;
  --berry: #a14952;
  --gold: #d6aa58;
  --paper: #f5f1e8;
  --white: #fffdf8;
  --line: #d8d1c3;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
}
button, input { font: inherit; }
[hidden] { display: none !important; }

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr);
}
.login-brand {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vw, 120px);
  color: var(--white);
  background:
    radial-gradient(circle at 16% 18%, rgb(214 170 88 / 18%), transparent 24%),
    radial-gradient(circle at 85% 75%, rgb(161 73 82 / 22%), transparent 28%),
    var(--forest);
}
.login-brand::after {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 10%) 1px, transparent 1px);
  background-size: 30px 30px;
  content: "";
  pointer-events: none;
}
.login-brand > * { position: relative; z-index: 1; }
.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--berry);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.login-brand .eyebrow { color: #efcf91; }
.login-brand h1 {
  max-width: 560px;
  margin: 0;
  font: 500 clamp(42px, 5.5vw, 76px)/.98 var(--serif);
  letter-spacing: -.045em;
}
.login-brand p {
  max-width: 440px;
  margin: 28px 0 0;
  color: #d9e3dd;
  font: 18px/1.65 var(--serif);
}
.login-brand small { margin-top: 26px; color: #b9cac4; }

.brand-mark {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  margin-bottom: 58px;
}
.brand-mark i { width: 3px; height: 29px; margin: auto; background: #efcf91; border-radius: 3px; transform-origin: bottom; }
.brand-mark i:nth-child(1) { height: 25px; transform: rotate(-45deg); }
.brand-mark i:nth-child(2) { height: 36px; transform: rotate(-17deg); }
.brand-mark i:nth-child(3) { height: 36px; transform: rotate(17deg); }
.brand-mark i:nth-child(4) { height: 25px; transform: rotate(45deg); }
.brand-mark b { position: absolute; bottom: 4px; left: 28px; width: 4px; height: 27px; background: #efcf91; border-radius: 3px; }

.auth-card {
  width: min(100% - 48px, 470px);
  align-self: center;
  justify-self: center;
  padding: 46px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgb(23 63 59 / 13%);
}
.auth-card h2 { margin: 0; font: 500 38px/1.1 var(--serif); letter-spacing: -.025em; }
.auth-card > p { margin: 12px 0 25px; color: var(--ink-soft); line-height: 1.55; }
.auth-card form { display: grid; gap: 17px; }
.auth-card label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}
.auth-card input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: #faf8f2;
  border: 1px solid #d3ccbe;
  border-radius: 9px;
  outline: 0;
}
.auth-card input:focus { background: var(--white); border-color: var(--forest-2); box-shadow: 0 0 0 4px rgb(36 100 91 / 13%); }
.auth-card button[type="submit"] {
  min-height: 48px;
  margin-top: 4px;
  color: var(--white);
  background: var(--forest);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 800;
}
.auth-card button[type="submit"]:hover { background: var(--forest-2); }
.auth-card button:focus-visible { outline: 3px solid rgb(161 73 82 / 35%); outline-offset: 2px; }
.auth-card button:disabled { opacity: .65; cursor: wait; }
.link-button {
  width: fit-content;
  margin: -4px auto 0;
  padding: 4px;
  color: var(--forest-2);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}
.auth-status {
  margin: 0 0 19px;
  padding: 11px 12px;
  color: #40534e;
  background: #eef3ef;
  border-left: 3px solid var(--forest-2);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.45;
}
.auth-status[data-kind="error"] { color: #6d2e27; background: #fff0ec; border-color: var(--berry); }
.auth-status[data-kind="success"] { color: #245849; background: #eaf5ee; border-color: #4a8b70; }
.auth-card footer { margin-top: 28px; padding-top: 20px; color: #788781; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.5; }

@media (max-width: 760px) {
  .login-shell { display: block; padding: 28px 0 44px; }
  .login-brand { min-height: 0; padding: 38px 24px 76px; }
  .brand-mark { margin-bottom: 34px; }
  .login-brand h1 { font-size: 46px; }
  .login-brand p { font-size: 16px; }
  .auth-card { position: relative; width: min(100% - 28px, 470px); margin: -42px auto 0; padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
