:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #e7eee9;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body { margin: 0; }

button, input { font: inherit; }

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 42px);
  background:
    radial-gradient(circle at 10% 10%, rgba(247, 181, 90, .13), transparent 28%),
    radial-gradient(circle at 92% 85%, rgba(31, 121, 99, .14), transparent 28%),
    var(--surface-page);
}

.auth-shell {
  width: min(1180px, 100%);
  min-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  overflow: hidden;
  border: 1px solid rgba(29, 64, 55, .08);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(19, 49, 41, .17), 0 3px 10px rgba(19, 49, 41, .07);
}

.auth-story {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  padding: clamp(34px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  color: var(--ink-invert);
  background:
    radial-gradient(circle at 76% 26%, rgba(246, 177, 67, .14), transparent 24%),
    linear-gradient(145deg, var(--brand-deep) 0%, var(--brand-strong) 52%, var(--brand-soft) 100%);
}

.auth-story::before,
.auth-story::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-story::before {
  width: 390px;
  height: 390px;
  right: -215px;
  top: -180px;
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 0 0 46px rgba(255, 255, 255, .025), 0 0 0 92px rgba(255, 255, 255, .018);
}

.auth-story::after {
  width: 210px;
  height: 210px;
  left: -124px;
  bottom: 118px;
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 42px rgba(255, 255, 255, .018);
}

.brand-lockup {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
}

.brand-logo-lockup {
  align-self: flex-start;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: auto;
  max-width: 100%;
}

.brand-logo-frame {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 80px;
  width: auto;
  max-width: 100%;
  flex: 0 0 auto;
}

.brand-logo-frame img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .22));
}

.brand-command-center {
  display: block;
  padding-left: 4px;
  color: rgba(255, 255, 255, .7);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .28em;
  line-height: 1;
  text-transform: uppercase;
}

.story-copy {
  position: relative;
  z-index: 2;
  max-width: 580px;
  margin-top: auto;
  margin-bottom: 112px;
}

.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 999px;
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .06);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.access-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f1aa38;
  box-shadow: 0 0 0 4px rgba(241, 170, 56, .12);
}

.story-kicker {
  margin: 25px 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.story-copy h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(37px, 4.2vw, 61px);
  line-height: 1.04;
  letter-spacing: -.052em;
}

.story-copy h1 em { color: var(--accent); font-style: normal; }

.story-copy > p:last-child {
  max-width: 520px;
  margin: 23px 0 0;
  color: rgba(240, 249, 244, .7);
  font-size: 15px;
  line-height: 1.7;
}

.terrain-art {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 60px;
  height: 270px;
  opacity: .55;
}

.terrain-art svg { width: 100%; height: 100%; overflow: visible; }
.terrain-art path { fill: none; }
.contour { stroke: rgba(255, 255, 255, .13); stroke-width: 1.2; }
.route { stroke: var(--accent-strong); stroke-width: 2.5; stroke-dasharray: 7 8; }
.route-points circle { fill: var(--accent-strong); stroke: var(--white); stroke-width: 2; }

.story-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .65fr 1.55fr 1fr;
  padding-top: 21px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.story-stats span { display: grid; gap: 5px; padding-right: 17px; }
.story-stats span + span { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .13); }
.story-stats strong { color: var(--white); font-size: 18px; line-height: 1; }
.story-stats small { color: rgba(255, 255, 255, .5); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }

.auth-form-panel {
  min-width: 0;
  padding: clamp(30px, 5vw, 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 110% 0%, rgba(28, 113, 91, .06), transparent 30%),
    var(--white);
}

.mobile-brand { display: none; color: #17453d; }

.auth-card { width: min(420px, 100%); margin: auto; }

.eyebrow {
  margin: 0 0 11px;
  color: #d97827;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.auth-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -.042em;
}

.lead { margin: 13px 0 28px; color: var(--ink-muted); font-size: 14px; line-height: 1.62; }

.auth-card form { display: grid; grid-template-columns: 1fr; gap: 9px; }

.auth-card label {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 760;
}

.field-wrap { position: relative; }

.field-wrap > svg {
  position: absolute;
  z-index: 1;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: #84958d;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.field-wrap input {
  width: 100%;
  height: 50px;
  padding: 0 45px;
  border: 1px solid #d5ded9;
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: #fbfdfc;
  font-size: 14px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.field-wrap input::placeholder { color: #a1aea8; }
.field-wrap input:hover { border-color: #b9c9c1; background: var(--white); }
.field-wrap input:focus { border-color: var(--brand); background: var(--white); box-shadow: 0 0 0 4px rgba(27, 120, 100, .11); }
.field-wrap:focus-within > svg { stroke: var(--brand); }

.password-toggle {
  position: absolute;
  z-index: 2;
  right: 7px;
  top: 50%;
  width: 38px;
  height: 38px;
  padding: 9px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 9px;
  color: var(--ink-muted);
  background: transparent;
  cursor: pointer;
}

.password-toggle:hover { color: var(--brand); background: #eef5f1; }
.password-toggle:focus-visible { outline: 3px solid rgba(27, 120, 100, .22); outline-offset: 1px; }
.password-toggle svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle .eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }

.scope-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 11px 0 5px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #567067;
  background: #f3f8f5;
}

.scope-note svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scope-note p { margin: 0; font-size: 11px; line-height: 1.45; }

.primary-button {
  width: 100%;
  min-height: 51px;
  margin-top: 6px;
  padding: 0 17px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(110deg, #155d4f, var(--success));
  box-shadow: 0 12px 24px rgba(19, 98, 81, .23);
  font-size: 13px;
  font-weight: 780;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, filter .18s;
}

.primary-button:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 15px 28px rgba(19, 98, 81, .28); }
.primary-button:active { transform: translateY(0); }
.primary-button:focus-visible { outline: 3px solid rgba(27, 120, 100, .25); outline-offset: 3px; }
.primary-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.google-button {
  width: 100%;
  min-height: 51px;
  margin-top: 6px;
  padding: 0 17px 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.google-button:hover { transform: translateY(-1px); background: var(--brand-wash); box-shadow: var(--shadow-sm); }
.google-button:focus-visible { outline: 3px solid rgba(27, 120, 100, .25); outline-offset: 3px; }
.google-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--ink-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -8px 0 18px;
  padding: 12px 13px;
  border: 1px solid #efc4be;
  border-radius: 11px;
  color: var(--danger-strong);
  background: var(--danger-wash);
}

.alert > span {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--white);
  background: #c95648;
  font-size: 11px;
  font-weight: 850;
}

.alert p { margin: 0; font-size: 12px; line-height: 1.5; }

.footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 21px 0 0;
  color: #85928c;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.footnote svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.page-footer { margin: 34px auto 0; color: #a0aaa5; font-size: 9px; letter-spacing: .04em; text-align: center; text-transform: uppercase; }

.security-story { background: radial-gradient(circle at 73% 55%, rgba(246, 177, 67, .13), transparent 27%), linear-gradient(145deg, #102f3e, #174d59 54%, #1d6d67); }
.security-copy { margin-bottom: auto; margin-top: 95px; max-width: 510px; }
.security-copy h1 { font-size: clamp(40px, 4.3vw, 60px); }
.security-illustration { position: absolute; right: clamp(20px, 3vw, 52px); bottom: 86px; width: min(48%, 310px); opacity: .8; }
.security-illustration svg { width: 100%; overflow: visible; }
.security-illustration .shield { fill: rgba(255, 255, 255, .055); stroke: rgba(255, 255, 255, .2); stroke-width: 2; }
.security-illustration .shield-inner { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.security-illustration circle { fill: var(--accent); }
.security-illustration .spark { fill: none; stroke: #174d59; stroke-width: 4; stroke-linecap: round; }
.security-stat { grid-template-columns: 1fr 1fr; width: 50%; }

.user-chip {
  display: grid;
  grid-template-columns: 35px 1fr;
  grid-template-rows: auto auto;
  column-gap: 11px;
  margin: -8px 0 18px;
  padding: 10px 12px;
  border: 1px solid var(--brand-tint);
  border-radius: 11px;
  background: #f5f9f7;
}

.user-chip > span { grid-row: 1 / 3; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: var(--brand); background: #dfeee7; }
.user-chip svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.user-chip small { align-self: end; color: #83928b; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.user-chip strong { align-self: start; overflow: hidden; color: var(--ink-soft); font-size: 12px; text-overflow: ellipsis; }

.password-rules { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 4px; }
.password-rules span { padding: 5px 8px; border: 1px solid var(--brand-tint); border-radius: 999px; color: #667a71; background: #f6f9f7; font-size: 9px; font-weight: 650; }

@media (max-width: 940px) {
  .auth-page { padding: 0; background: var(--white); }
  .auth-shell { min-height: 100vh; grid-template-columns: minmax(0, .9fr) minmax(400px, 1.1fr); border: 0; border-radius: 0; }
  .auth-story { padding: 34px; }
  .brand-logo-frame { height: 46px; gap: 12px; }
  .story-copy h1 { font-size: 42px; }
  .story-stats { grid-template-columns: 1fr 1fr; }
  .story-stats span:nth-child(2) { display: none; }
  .security-stat { width: 100%; }
}

@media (max-width: 720px) {
  .auth-shell { display: block; }
  .auth-story { display: none; }
  .auth-form-panel { min-height: 100vh; padding: 28px clamp(22px, 7vw, 42px); justify-content: flex-start; background: radial-gradient(circle at 100% 0%, rgba(28, 113, 91, .1), transparent 27%), var(--white); }
  .mobile-brand { display: inline-flex; margin-bottom: clamp(42px, 10vh, 72px); }
  .mobile-brand .brand-logo-frame { height: 68px; }
  .mobile-brand .brand-command-center { color: #3c6d64; }
  .auth-card { margin: 0 auto; }
  .page-footer { margin-top: auto; padding-top: 48px; }
}

@media (max-width: 420px) {
  .auth-form-panel { padding: 24px 20px; }
  .mobile-brand { margin-bottom: 42px; }
  .auth-card h2 { font-size: 29px; }
  .lead { margin-bottom: 22px; }
  .field-wrap input { height: 49px; }
}

@media (max-height: 690px) and (min-width: 721px) {
  .auth-shell { min-height: calc(100vh - 24px); }
  .auth-story { min-height: 620px; padding-top: 30px; padding-bottom: 30px; }
  .story-copy { margin-bottom: 80px; }
  .auth-form-panel { padding-top: 32px; padding-bottom: 25px; }
  .page-footer { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.auth-help{margin:14px 0 0;text-align:center;color:#6a7773;font-size:12px}.auth-help a{color:#147461;font-weight:800;text-decoration:none}.auth-help a:hover{text-decoration:underline}.success-panel{margin:18px 0;padding:16px;border:1px solid #a9d7c8;border-radius:12px;background:var(--brand-wash);color:#174f40}.success-panel strong{display:block;margin-bottom:5px}.success-panel p{margin:0;font-size:13px}.link-button{text-decoration:none}.compact-shell{min-height:620px}
