:root {
  --auth-paper: #f4efe5;
  --auth-panel: #fbf7ef;
  --auth-forest: #263a32;
  --auth-forest-soft: #405e50;
  --auth-ink: #162821;
  --auth-muted: #6f7971;
  --auth-line: #d9d0c0;
  --auth-accent: #b36a4d;
}

html body.auth-page {
  min-height: 100vh;
  margin: 0;
  padding: 0 0 24px;
  color: var(--auth-ink);
  background:
    linear-gradient(rgba(77, 91, 81, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 91, 81, .055) 1px, transparent 1px),
    var(--auth-paper);
  background-size: 52px 52px;
}

body.auth-page .auth-topbar {
  width: min(1320px, calc(100% - 40px));
  max-width: none;
  min-height: 78px;
  margin: 0 auto;
  padding: 16px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.auth-page .brand { gap: 14px; }
body.auth-page .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px 4px 14px 4px;
  background: var(--auth-forest);
  color: #fff;
  font: 800 28px/1 Georgia, serif;
}
body.auth-page .brand-copy strong { font-size: 17px; letter-spacing: .06em; }
body.auth-page .brand-copy small { margin-top: 2px; color: #829087; font-size: 9px; letter-spacing: .22em; }
body.auth-page .auth-secure { display: flex; align-items: center; gap: 9px; color: #52675d; font-size: 13px; font-weight: 650; }
body.auth-page .auth-secure i { width: 9px; height: 9px; border-radius: 50%; background: #4d876e; box-shadow: 0 0 0 6px rgba(77,135,110,.1); }

body.auth-page main.auth-shell {
  width: min(1320px, calc(100% - 40px));
  max-width: none;
  margin: 30px auto 56px;
  padding: 0;
}

body.auth-page main.auth-shell .auth-card {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: 28px 8px 28px 8px;
  background: var(--auth-panel);
  box-shadow: 0 28px 70px rgba(47, 58, 51, .12);
}

body.auth-page main.auth-shell .auth-intro {
  position: relative;
  overflow: hidden;
  padding: 76px 70px 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(circle at 82% 16%, rgba(179,106,77,.30), transparent 28%),
    linear-gradient(145deg, #2c4339 0%, #20342c 100%);
}
body.auth-page .auth-intro::before { display: none; }
body.auth-page .auth-intro::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -110px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.02);
}
body.auth-page .auth-kicker { color: #d7ad91; font-size: 12px; font-weight: 800; letter-spacing: .26em; }
body.auth-page .auth-intro h1 {
  max-width: 650px;
  margin: 28px 0 22px;
  color: #fff;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(48px, 5.4vw, 80px);
  line-height: .98;
  letter-spacing: -.045em;
}
body.auth-page .auth-intro h1 em { display: inline; color: #d69a78; font-style: normal; }
body.auth-page .auth-intro > p { max-width: 650px; margin: 0; color: #c3cec7; font-size: 17px; line-height: 1.8; }
body.auth-page .auth-intro > p { max-width: 600px; }
body.auth-page .auth-intro ol { position: relative; z-index: 1; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
body.auth-page .auth-intro ol li,
body.auth-page .auth-intro ol li:last-child {
  min-height: 63px;
  padding: 0;
  display: grid;
  grid-column: auto;
  grid-template-columns: 52px 1fr;
  align-items: center;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.13);
  border-radius: 0;
  background: transparent;
}
body.auth-page .auth-intro ol li:last-child { border-bottom: 1px solid rgba(255,255,255,.13); }
body.auth-page .auth-intro ol li > b { margin: 0; color: #d9a080; font: 700 12px/1 Georgia, serif; letter-spacing: .08em; }
body.auth-page .auth-intro ol li strong { color: #fff; font-size: 15px; }
body.auth-page .auth-intro ol li small { display: block; margin-top: 4px; color: #98aaa0; font-size: 12px; }

body.auth-page main.auth-shell .auth-form-panel {
  padding: 78px 72px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  background: rgba(251,247,239,.96);
}
body.auth-page .form-kicker { color: var(--auth-accent); font-size: 11px; font-weight: 800; letter-spacing: .24em; }
body.auth-page .auth-form-panel h2 { margin: 18px 0 10px; color: var(--auth-ink); font-family: Georgia, "Songti SC", serif; font-size: 42px; line-height: 1.1; }
body.auth-page .auth-form-panel > p:not(.auth-note) { margin: 0 0 36px; color: var(--auth-muted); font-size: 14px; line-height: 1.7; }
body.auth-page .auth-form-panel form { width: 100%; }
body.auth-page .auth-form-panel label { display: block; margin-bottom: 20px; color: #46554d; font-size: 12px; font-weight: 750; }
body.auth-page .auth-form-panel label[hidden] { display: none; }
body.auth-page .auth-form-panel input {
  width: 100%;
  height: 58px;
  min-height: 58px;
  margin-top: 9px;
  padding: 0 17px;
  border: 1px solid #cfc5b4;
  border-radius: 12px 3px 12px 3px;
  outline: none;
  background: #fffdf8;
  color: var(--auth-ink);
  font-size: 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
body.auth-page .auth-form-panel input:focus { border-color: var(--auth-forest-soft); box-shadow: 0 0 0 4px rgba(64,94,80,.1); }
body.auth-page .auth-submit {
  width: 100%;
  height: 60px;
  min-height: 60px;
  margin-top: 12px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 12px 3px 12px 3px;
  background: var(--auth-forest);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(38,58,50,.18);
}
body.auth-page .auth-submit:hover { background: #314a40; }
body.auth-page .auth-submit b { font-size: 28px; font-weight: 300; }
body.auth-page .auth-error { min-height: 22px; margin: 14px 0 0; color: #a44735; font-size: 13px; }
body.auth-page .auth-note { margin: 24px 0 0; color: #92988f; font-size: 11px; line-height: 1.7; }
body.auth-page .auth-footer { width: min(1320px, calc(100% - 40px)); max-width: none; margin: 0 auto; color: #7e887f; }

@media (max-width: 980px) {
  body.auth-page main.auth-shell .auth-card { grid-template-columns: 1fr; }
  body.auth-page main.auth-shell .auth-intro { padding: 58px 46px; }
  body.auth-page .auth-intro h1 { font-size: 56px; }
  body.auth-page main.auth-shell .auth-form-panel { padding: 58px 46px; }
}
@media (max-width: 620px) {
  body.auth-page .auth-topbar,
  body.auth-page main.auth-shell,
  body.auth-page .auth-footer { width: calc(100% - 24px); }
  body.auth-page .auth-secure { display: none; }
  body.auth-page main.auth-shell { margin-top: 12px; }
  body.auth-page main.auth-shell .auth-intro,
  body.auth-page main.auth-shell .auth-form-panel { padding: 42px 26px; }
  body.auth-page .auth-intro h1 { font-size: 42px; }
  body.auth-page .auth-intro > p { font-size: 14px; }
  body.auth-page .auth-intro ol { margin-top: 34px; }
  body.auth-page .auth-form-panel h2 { font-size: 34px; }
}

/* Neutral product-style fallback, independent of the shared theme. */
html,
html body.auth-page {
  color: #1d1d1f;
  background: #f5f5f7;
  background-image: none;
}
body.auth-page .ambient { display: none; }
body.auth-page .auth-topbar {
  position: relative;
  z-index: 10;
  border-color: rgba(0,0,0,.07);
  background: rgba(250,250,252,.88);
  box-shadow: none;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
body.auth-page .brand-mark {
  color: #fff;
  border-radius: 11px;
  background: #1d1d1f;
  box-shadow: none;
}
body.auth-page .brand-copy strong { color: #1d1d1f; }
body.auth-page .brand-copy small { color: #86868b; }
body.auth-page .auth-secure { color: #515154; }
body.auth-page main.auth-shell .auth-card {
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0,0,0,.08);
}
body.auth-page main.auth-shell .auth-intro {
  color: #1d1d1f;
  background: #f2f2f4;
  background-image: none;
}
body.auth-page .auth-intro::before,
body.auth-page .auth-intro::after { display: none; }
body.auth-page .auth-kicker,
body.auth-page .form-kicker,
body.auth-page .auth-intro ol li > b { color: #515154; font-family: inherit; }
body.auth-page .auth-intro h1,
body.auth-page .auth-intro h1 em {
  color: #1d1d1f;
  font-family: inherit;
  font-weight: 650;
  letter-spacing: -.055em;
}
body.auth-page .auth-intro > p { color: #6e6e73; }
body.auth-page .auth-intro ol li,
body.auth-page .auth-intro ol li:last-child { border-color: #d2d2d7; }
body.auth-page .auth-intro ol li strong { color: #1d1d1f; }
body.auth-page .auth-intro ol li small { color: #86868b; }
body.auth-page main.auth-shell .auth-form-panel {
  color: #1d1d1f;
  background: #fff;
  background-image: none;
}
body.auth-page .auth-form-panel h2 {
  color: #1d1d1f;
  font-family: inherit;
  font-weight: 650;
  letter-spacing: -.04em;
}
body.auth-page .auth-form-panel > p,
body.auth-page .auth-note { color: #86868b; }
body.auth-page .auth-form-panel label { color: #515154; }
body.auth-page .auth-form-panel input {
  border-color: #d2d2d7;
  border-radius: 12px;
  color: #1d1d1f;
  background: #fff;
}
body.auth-page .auth-form-panel input:focus {
  border-color: #1d1d1f;
  box-shadow: 0 0 0 4px rgba(0,0,0,.09);
}
body.auth-page .auth-submit {
  border-radius: 999px;
  background: #1d1d1f;
  box-shadow: none;
}
body.auth-page .auth-submit:hover { background: #000; }
body.auth-page .auth-footer { color: #86868b; }

/* Calmer sign-in composition with a readable two-line headline. */
html body.auth-page main.auth-shell { margin-top: 22px; }
html body.auth-page main.auth-shell .auth-card {
  min-height: 660px;
  grid-template-columns: 54% 46%;
  border-radius: 28px;
}
html body.auth-page main.auth-shell .auth-intro { padding: 62px clamp(48px, 5vw, 84px) 48px; }
html body.auth-page .auth-intro-copy {
  width: min-content;
  max-width: 100%;
  align-self: center;
}
html body.auth-page .auth-intro h1 {
  width: max-content;
  max-width: 100%;
  margin: 24px 0 20px;
  font-size: clamp(44px, 3.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -.05em;
}
html body.auth-page .auth-intro h1 .auth-headline-line,
html body.auth-page .auth-intro h1 em { display:block; white-space:nowrap; }
html body.auth-page .auth-intro h1 em { margin-top:6px; }
html body.auth-page .auth-capability-list {
  width: 100%;
  max-width: 100%;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  counter-reset: auth-capability;
  list-style: none;
  color: #6e6e73;
}
html body.auth-page .auth-capability-list li {
  min-height: 34px;
  padding: 7px 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  border-top: 1px solid #d9d9dd;
  counter-increment: auth-capability;
  font-size: 14px;
  line-height: 1.45;
}
html body.auth-page .auth-capability-list li:last-child { border-bottom: 1px solid #d9d9dd; }
html body.auth-page .auth-capability-list li::before {
  content: "0" counter(auth-capability);
  color: #9a9aa0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}
html body.auth-page .auth-intro ol { margin-top: 40px; }
html body.auth-page .auth-intro ol li,
html body.auth-page .auth-intro ol li:last-child {
  min-height: 56px;
  grid-template-columns: 44px 1fr;
}
html body.auth-page .auth-intro ol li strong { font-size: 13px; }
html body.auth-page .auth-intro ol li small { margin-top: 3px; font-size: 11px; }
html body.auth-page main.auth-shell .auth-form-panel { padding: 64px clamp(48px, 5vw, 76px); }
html body.auth-page .auth-form-panel > * { width: min(100%, 440px); align-self: center; }
html body.auth-page .auth-form-panel h2 { margin-top: 14px; font-size: 36px; }
html body.auth-page .auth-form-panel > p:not(.auth-note) { margin-bottom: 30px; }
html body.auth-page .auth-form-panel label { margin-bottom: 17px; }
html body.auth-page .auth-form-panel input { height: 54px; min-height: 54px; }
html body.auth-page .auth-submit { height: 54px; min-height: 54px; margin-top: 8px; font-size: 14px; }
html body.auth-page .auth-submit b { font-size: 23px; }
html body.auth-page .auth-note { margin-top: 20px; }

@media (max-width: 980px) {
  html body.auth-page main.auth-shell .auth-card { grid-template-columns: 1fr; }
  html body.auth-page main.auth-shell .auth-intro { padding: 56px 48px; }
  html body.auth-page .auth-intro-copy { width: min(100%, 620px); }
  html body.auth-page .auth-intro h1 { width: auto; max-width: 620px; }
}
@media (max-width: 620px) {
  html body.auth-page main.auth-shell .auth-intro { padding: 42px 26px; }
  html body.auth-page .auth-intro-copy { width: 100%; }
  html body.auth-page .auth-intro h1 { max-width: none; font-size: 38px; }
  html body.auth-page .auth-intro h1 .auth-headline-line,
  html body.auth-page .auth-intro h1 em { white-space:normal; }
}
