:root {
  --forest: #173a30;
  --forest-2: #245847;
  --forest-3: #36705b;
  --paper: #f5f1e7;
  --surface: #fffdf8;
  --line: #ded7c8;
  --ink: #23352e;
  --muted: #7b8179;
  --danger: #a64f45;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
}
.auth-shell {
  display: grid;
  grid-template-columns: minmax(340px, .92fr) minmax(420px, 1.08fr);
  min-height: 100vh;
}
.auth-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 46px;
  color: #f5f0e3;
  background:
    radial-gradient(circle at 82% 12%, rgba(183, 145, 78, .24), transparent 33%),
    linear-gradient(155deg, #183c31 0%, #123027 58%, #0f2a22 100%);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #19372c;
  background: #e8d6ab;
  border-radius: 13px;
  font-family: Georgia, serif;
  font-size: 27px;
}
.brand-name { font-family: Georgia, serif; font-size: 24px; line-height: 1; }
.brand-tag { margin-top: 5px; color: #d8c390; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.intro-copy { max-width: 420px; }
.eyebrow { color: #d2b774; font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.intro-copy h1 {
  margin: 12px 0 18px;
  font-family: Georgia, serif;
  font-size: clamp(44px, 5.3vw, 66px);
  font-weight: 400;
  line-height: .98;
}
.intro-copy p { max-width: 340px; margin: 0; color: #c9d3ca; font-size: 14px; line-height: 1.6; }
.intro-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(226, 213, 181, .18);
  color: #aebbb2;
  font-size: 9px;
}
.auth-card {
  align-self: center;
  justify-self: center;
  width: min(440px, calc(100% - 40px));
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(31, 48, 39, .09);
}
.auth-card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 25px; }
.lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  color: var(--forest-2);
  background: #e9f1e8;
  border-radius: 10px;
}
.lock-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-card h2 { margin: 2px 0 0; font-size: 20px; font-weight: 650; }
.auth-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.field > span:first-child { color: #4e5b53; font-size: 10px; font-weight: 650; }
.field input {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d6d0c3;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.field input:focus { border-color: var(--forest-3); box-shadow: 0 0 0 3px rgba(54, 112, 91, .12); }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 72px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  padding: 5px;
  color: var(--forest-3);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  transform: translateY(-50%);
  cursor: pointer;
}
.form-error {
  margin: 0 0 13px;
  padding: 9px 11px;
  color: #7f332c;
  background: #f8e8e4;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.4;
}
.submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 45px;
  padding: 0 15px;
  color: #fff;
  background: var(--forest);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.submit:hover { background: var(--forest-2); }
.submit:disabled { opacity: .65; cursor: wait; }
.submit-arrow { font-size: 18px; line-height: 1; }
.auth-note { margin: 18px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.5; }
.auth-note code { padding: 1px 4px; color: #5f4c28; background: #f4eddd; border-radius: 3px; }
.auth-help { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #eee9df; color: var(--muted); font-size: 10px; }
.auth-help a { color: var(--forest-3); font-weight: 600; }
@media (max-width: 780px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-intro { min-height: 240px; padding: 26px; }
  .intro-copy h1 { font-size: 44px; }
  .intro-footer { display: none; }
  .auth-card { margin: 24px 0; }
}
