:root {
  --ink: #152824;
  --muted: #65736f;
  --green: #174d44;
  --green-dark: #0d322d;
  --gold: #d4a84f;
  --line: #dfe6e3;
  --paper: #f7f9f8;
  color-scheme: light;
}

* { box-sizing: border-box; }

body.auth-page {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 46%) 1fr;
  min-height: 100vh;
}

.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(36px, 5vw, 72px);
  color: #fff;
  background:
    radial-gradient(circle at 85% 12%, rgba(212, 168, 79, .25), transparent 28%),
    linear-gradient(145deg, var(--green) 0%, var(--green-dark) 72%);
}

.auth-brand::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -190px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.018);
}

.auth-logo { position: relative; z-index: 1; width: min(210px, 58%); height: auto; }
.auth-brand-content { position: relative; z-index: 1; max-width: 540px; }
.auth-eyebrow, .auth-kicker {
  color: var(--gold);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.auth-brand h1 { margin: 18px 0; font-size: clamp(2.1rem, 4vw, 4.2rem); line-height: 1.05; letter-spacing: -.04em; }
.auth-brand-content p { max-width: 480px; color: rgba(255,255,255,.76); font-size: 1.05rem; line-height: 1.7; }
.auth-copyright { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.5); font-size: .8rem; }

.auth-panel { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.auth-form-wrap { width: min(100%, 430px); }
.auth-form-register { padding-block: 20px; }
.auth-mobile-logo { display: none; margin-bottom: 30px; color: var(--green); font-size: 1.35rem; font-weight: 900; letter-spacing: .18em; }
.auth-form-wrap h2 { margin: 8px 0 10px; font-size: clamp(2rem, 4vw, 2.7rem); letter-spacing: -.035em; }
.auth-subtitle { margin: 0 0 28px; color: var(--muted); line-height: 1.55; }
.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; margin-bottom: 8px; font-size: .88rem; font-weight: 700; }
.auth-field input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 15px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.auth-field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,77,68,.12); }
.auth-field small { display: block; margin-top: 7px; color: var(--muted); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 76px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  border: 0;
  padding: 5px;
  transform: translateY(-50%);
  background: transparent;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
}
.auth-submit {
  width: 100%;
  min-height: 53px;
  margin-top: 5px;
  border: 0;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.auth-submit:hover { background: var(--green-dark); transform: translateY(-1px); }
.auth-alert { margin-bottom: 20px; border-radius: 8px; padding: 13px 15px; font-size: .9rem; line-height: 1.45; }
.auth-alert-error { border: 1px solid #f0caca; background: #fff4f4; color: #8e2929; }
.auth-alert-success { border: 1px solid #bcdccc; background: #effaf4; color: #225f42; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 20px; color: #9aa5a1; font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-register { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: .92rem; }
.auth-register a { color: var(--green); font-weight: 800; text-decoration: none; }
.auth-register a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .auth-shell { display: block; }
  .auth-brand { display: none; }
  .auth-panel { min-height: 100vh; padding: 36px 22px; }
  .auth-mobile-logo { display: block; }
}

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