:root {
  --auth-green-950: #102a1d;
  --auth-green-900: #15351f;
  --auth-green-700: #5e7d35;
  --auth-green-600: #7e9543;
  --auth-yellow: #f8ba32;
  --auth-cream: #f6f2e8;
  --auth-paper: #fffefa;
  --auth-ink: #17200e;
  --auth-muted: #6c756a;
  --auth-line: rgba(23, 32, 14, .12);
  --auth-shadow: 0 34px 80px -42px rgba(19, 49, 28, .36);
  --auth-ease: cubic-bezier(.2, .75, .2, 1);
}

.auth-body,
.auth-body * { box-sizing: border-box; }
.auth-body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--auth-cream);
  color: var(--auth-ink);
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
}
.auth-body a { color: inherit; text-decoration: none; }
.auth-body button,
.auth-body input,
.auth-body textarea,
.auth-body select { font: inherit; }
.auth-body button { color: inherit; }
.auth-body img { display: block; max-width: 100%; }
.auth-body ::selection { background: var(--auth-yellow); color: var(--auth-ink); }

.auth-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(420px, .92fr) minmax(580px, 1.08fr);
  background: var(--auth-cream);
}
.auth-visual {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) minmax(260px, 38vh) auto;
  gap: 12px;
  background:
    radial-gradient(circle at 28% 18%, rgba(126,149,67,.26), transparent 30%),
    radial-gradient(circle at 80% 72%, rgba(248,186,50,.12), transparent 28%),
    linear-gradient(145deg, #183b28 0%, #102a1d 70%);
  padding: clamp(28px, 4vw, 58px);
  color: white;
  isolation: isolate;
}
.auth-visual__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}
.auth-brand {
  position: relative;
  z-index: 4;
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
}
.auth-brand img { width: 52px; height: 52px; object-fit: contain; }
.auth-brand span { display: grid; gap: 3px; }
.auth-brand strong {
  font-family: "Bricolage Grotesque", Manrope, sans-serif;
  font-size: 21px;
  line-height: 1;
  letter-spacing: -.045em;
}
.auth-brand small {
  color: rgba(255,255,255,.52);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.auth-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  max-width: 660px;
  padding-top: 18px;
}
.auth-copy h1 {
  margin: 0;
  font-family: "Bricolage Grotesque", Manrope, sans-serif;
  font-size: clamp(44px, 5vw, 78px);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.auth-copy p {
  max-width: 590px;
  margin: 20px 0 0;
  color: rgba(255,255,255,.59);
  font-size: 14px;
  line-height: 1.75;
}
.auth-feature-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.auth-feature-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  padding: 8px 11px;
  color: rgba(255,255,255,.7);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.auth-feature-row b { color: var(--auth-yellow); }
.auth-scene {
  position: relative;
  z-index: 2;
  min-height: 260px;
  margin: -10px -8% -18px;
  perspective: 1000px;
}
.auth-scene::before {
  content: "";
  position: absolute;
  inset: 8% 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248,186,50,.12), transparent 64%);
  filter: blur(6px);
}
.auth-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.auth-scene__chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 155px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(10,35,23,.5);
  padding: 10px 12px;
  box-shadow: 0 24px 48px -30px rgba(0,0,0,.8);
  backdrop-filter: blur(15px) saturate(140%);
  will-change: transform;
}
.auth-scene__chip--top { top: 10%; right: 5%; }
.auth-scene__chip--bottom { left: 6%; bottom: 8%; }
.auth-scene__chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--auth-yellow); box-shadow: 0 0 0 7px rgba(248,186,50,.12); }
.auth-scene__chip b { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 13px; background: var(--auth-yellow); color: var(--auth-ink); font-size: 11px; }
.auth-scene__chip small { display: block; color: rgba(255,255,255,.45); font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.auth-scene__chip strong { display: block; margin-top: 2px; font-size: 10px; }
.auth-ticker {
  position: relative;
  z-index: 3;
  overflow: hidden;
  margin-inline: calc(clamp(28px, 4vw, 58px) * -1);
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.035);
}
.auth-ticker > div { display: flex; width: max-content; animation: auth-ticker 30s linear infinite; }
.auth-ticker span { padding: 12px 22px; color: rgba(255,255,255,.48); font-size: 8px; font-weight: 800; letter-spacing: .15em; white-space: nowrap; }
.auth-ticker span::after { content: "•"; margin-left: 22px; color: var(--auth-yellow); }
@keyframes auth-ticker { to { transform: translateX(-50%); } }

.auth-panel {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 78px);
  background:
    radial-gradient(circle at 92% 10%, rgba(126,149,67,.09), transparent 26%),
    var(--auth-cream);
}
.auth-panel--register { align-items: start; }
.auth-card {
  width: min(620px, 100%);
  border: 1px solid rgba(23,32,14,.08);
  border-radius: 36px;
  background: rgba(255,254,250,.94);
  padding: clamp(26px, 4.2vw, 54px);
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(14px);
}
.auth-card--register { width: min(720px, 100%); margin-block: 20px; }
.auth-card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-back { display: inline-flex; align-items: center; gap: 8px; color: var(--auth-green-900); font-size: 11px; font-weight: 800; }
.auth-back span { font-size: 17px; }
.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: rgba(126,149,67,.12);
  padding: 9px 12px;
  color: var(--auth-green-900);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.auth-pill svg { width: 15px; height: 15px; }
.auth-card__heading { margin-top: 34px; }
.auth-card__heading h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", Manrope, sans-serif;
  font-size: clamp(38px, 4.7vw, 58px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.auth-card__heading p { margin: 16px 0 0; color: var(--auth-muted); font-size: 13px; line-height: 1.75; }
.auth-card__heading p strong { color: var(--auth-green-900); }
.auth-form { display: grid; gap: 18px; margin-top: 28px; }
.auth-grid { display: grid; gap: 14px; }
.auth-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-field { min-width: 0; }
.auth-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--auth-green-900);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.auth-field label span { color: #9aa196; font-weight: 600; letter-spacing: 0; text-transform: none; }
.auth-control-wrap { position: relative; min-width: 0; }
.auth-control,
.auth-body .auth-control {
  width: 100%;
  min-height: 54px;
  appearance: none;
  border: 1px solid rgba(23,32,14,.12);
  border-radius: 17px;
  outline: none;
  background: white;
  padding: 13px 15px;
  color: var(--auth-ink);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 12px 22px -20px rgba(23,32,14,.3);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.auth-control::placeholder { color: #9ba49a; opacity: .8; }
.auth-control:focus { border-color: rgba(126,149,67,.72); box-shadow: 0 0 0 4px rgba(126,149,67,.12), 0 16px 30px -22px rgba(23,32,14,.3); }
.auth-control-wrap .auth-control-icon { position: absolute; left: 15px; top: 50%; z-index: 1; transform: translateY(-50%); color: #8a9488; pointer-events: none; }
.auth-control-wrap .auth-control-icon + .auth-control { padding-left: 43px; }
.auth-control-icon svg { width: 17px; height: 17px; }
.auth-textarea { min-height: 110px; resize: vertical; }
.auth-body select.auth-control { padding-right: 42px; background-image: linear-gradient(45deg, transparent 50%, #73806f 50%), linear-gradient(135deg, #73806f 50%, transparent 50%); background-position: calc(100% - 18px) 23px, calc(100% - 13px) 23px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.password-toggle {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: rgba(126,149,67,.1);
  padding: 8px 10px;
  color: var(--auth-green-900);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.auth-control-wrap:has(.password-toggle) .auth-control { padding-right: 68px; }
.auth-hint { margin: 7px 0 0; color: #8f978d; font-size: 10px; line-height: 1.5; }
.auth-hint strong { color: var(--auth-green-900); }
.auth-error { margin: 0; border: 1px solid #f0b8b8; border-radius: 14px; background: #fff1f1; padding: 11px 13px; color: #8d2e2e; font-size: 11px; font-weight: 700; }
.auth-success { border: 1px solid rgba(126,149,67,.24); border-radius: 18px; background: rgba(126,149,67,.1); padding: 16px; color: var(--auth-green-900); font-size: 12px; line-height: 1.65; }
.auth-success strong,
.auth-success span { display: block; }
.auth-success strong { margin-bottom: 5px; font-size: 16px; }
.auth-success a { display: inline-flex; margin-top: 10px; border-radius: 999px; background: var(--auth-green-900); padding: 9px 13px; color: white; font-weight: 800; }
.auth-submit {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 18px;
  background: var(--auth-ink);
  padding: 14px 20px;
  color: white !important;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 20px 34px -24px rgba(23,32,14,.75);
  cursor: pointer;
  transition: transform .25s var(--auth-ease), background .25s ease, box-shadow .25s ease;
}
.auth-submit:hover { transform: translateY(-2px); background: #25311a; box-shadow: 0 24px 42px -24px rgba(23,32,14,.8); }
.auth-submit span { font-size: 20px; }
.auth-links { display: grid; gap: 10px; margin-top: 14px; }
.auth-link-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--auth-line);
  border-radius: 20px;
  background: white;
  padding: 12px 14px;
  transition: transform .25s var(--auth-ease), border-color .25s ease, box-shadow .25s ease;
}
.auth-link-card:hover { transform: translateY(-2px); border-color: rgba(126,149,67,.35); box-shadow: 0 18px 34px -26px rgba(23,32,14,.4); }
.auth-link-card--yellow { border-color: rgba(248,186,50,.34); background: rgba(248,186,50,.13); }
.auth-link-card__icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; background: rgba(126,149,67,.13); color: var(--auth-green-900); }
.auth-link-card--yellow .auth-link-card__icon { background: var(--auth-yellow); color: var(--auth-ink); }
.auth-link-card__icon svg { width: 18px; height: 18px; }
.auth-link-card strong { display: block; color: var(--auth-green-900); font-size: 11px; }
.auth-link-card small { display: block; margin-top: 3px; color: #8f978d; font-size: 9px; }
.auth-link-card > b { color: var(--auth-green-900); font-size: 18px; }
.auth-login-note { margin: 18px 0 0; text-align: center; color: #7d867a; font-size: 11px; }
.auth-login-note a { color: var(--auth-green-900); font-weight: 800; }
.auth-credit { margin: 26px 0 0; text-align: center; color: #a0a69e; font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.captcha-box { display: grid; grid-template-columns: minmax(0, 1fr) 90px 50px; align-items: center; gap: 10px; border: 1px solid var(--auth-line); border-radius: 18px; background: white; padding: 9px; }
.captcha-equation { display: flex; min-height: 48px; align-items: center; justify-content: center; gap: 12px; border-radius: 13px; background: rgba(126,149,67,.12); color: var(--auth-green-900); font-family: "Bricolage Grotesque", sans-serif; font-size: 21px; font-weight: 700; }
.captcha-answer { min-height: 48px; text-align: center; font-size: 17px; }
.captcha-refresh { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(126,149,67,.22); border-radius: 13px; background: white; color: var(--auth-green-900); cursor: pointer; }
.captcha-refresh svg { width: 19px; height: 19px; }
.auth-body .hidden { display: none !important; }

[data-auth-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .75s var(--auth-ease), transform .75s var(--auth-ease); }
[data-auth-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .auth-shell { grid-template-columns: minmax(380px, .8fr) minmax(540px, 1.2fr); }
  .auth-visual { padding: 32px; }
  .auth-copy h1 { font-size: clamp(42px, 5vw, 64px); }
  .auth-scene { margin-inline: -12%; }
  .auth-panel { padding: 34px; }
}

@media (max-width: 960px) {
  .auth-shell { display: block; min-height: 100svh; }
  .auth-visual {
    position: relative;
    height: auto;
    min-height: 620px;
    grid-template-rows: auto auto minmax(280px, 1fr) auto;
    padding: 26px 24px 0;
  }
  .auth-copy { max-width: 720px; margin-top: 42px; }
  .auth-copy h1 { max-width: 780px; font-size: clamp(48px, 8.5vw, 78px); }
  .auth-copy p { max-width: 650px; }
  .auth-scene { min-height: 330px; margin: -10px -4% -8px; }
  .auth-ticker { margin-inline: -24px; }
  .auth-panel { padding: 0 20px 48px; background: var(--auth-cream); }
  .auth-card,
  .auth-card--register { width: min(760px, 100%); margin: -24px 0 0; border-radius: 32px; box-shadow: 0 30px 70px -40px rgba(23,32,14,.45); }
}

@media (max-width: 680px) {
  .auth-visual { min-height: 570px; padding: 20px 16px 0; }
  .auth-brand img { width: 46px; height: 46px; }
  .auth-brand strong { font-size: 19px; }
  .auth-copy { margin-top: 30px; }
  .auth-copy h1 { font-size: clamp(42px, 12.5vw, 62px); line-height: .94; }
  .auth-copy p { margin-top: 16px; font-size: 12px; line-height: 1.7; }
  .auth-feature-row { gap: 6px; margin-top: 17px; }
  .auth-feature-row span { padding: 7px 9px; font-size: 7px; }
  .auth-scene { min-height: 280px; margin: -4px -10% -2px; }
  .auth-scene__chip { min-width: 136px; border-radius: 15px; padding: 8px 9px; }
  .auth-scene__chip--top { right: 5%; top: 8%; }
  .auth-scene__chip--bottom { left: 7%; bottom: 5%; }
  .auth-ticker { margin-inline: -16px; }
  .auth-panel { padding: 0 12px 34px; }
  .auth-card,
  .auth-card--register { margin-top: -20px; border-radius: 27px; padding: 24px 18px; }
  .auth-card__top { align-items: flex-start; flex-direction: column; }
  .auth-card__heading { margin-top: 26px; }
  .auth-card__heading h2 { font-size: 39px; }
  .auth-card__heading p { font-size: 12px; }
  .auth-grid--two { grid-template-columns: 1fr; }
  .auth-control,
  .auth-body .auth-control { min-height: 52px; border-radius: 15px; font-size: 12px; }
  .auth-submit { min-height: 56px; border-radius: 16px; }
  .captcha-box { grid-template-columns: 1fr 76px 48px; }
  .captcha-equation { gap: 8px; font-size: 18px; }
  .auth-link-card { border-radius: 18px; }
}

@media (max-width: 420px) {
  .auth-brand small { display: none; }
  .auth-visual { min-height: 540px; }
  .auth-copy h1 { font-size: 40px; }
  .auth-feature-row span:nth-child(3) { display: none; }
  .auth-scene { min-height: 260px; }
  .auth-scene__chip--top { right: 1%; }
  .auth-scene__chip--bottom { left: 2%; }
  .auth-card__heading h2 { font-size: 36px; }
  .auth-link-card { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 9px; padding: 11px; }
  .auth-link-card__icon { width: 38px; height: 38px; }
  .captcha-box { grid-template-columns: 1fr 68px 44px; gap: 7px; padding: 7px; }
  .captcha-refresh { width: 44px; height: 44px; }
}

@media (pointer: coarse) {
  [data-auth-float] { animation: auth-mobile-float 5.2s ease-in-out infinite; }
  [data-auth-float]:nth-child(even) { animation-delay: -2.6s; }
  @keyframes auth-mobile-float { 50% { transform: translateY(-7px) rotate(1.2deg); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  [data-auth-reveal] { opacity: 1; transform: none; }
}
