/* Approved R7 extraction. Context stylesheet applies only to account/dashboard entry points. */
.marketing-mode {
  --paper: #faf9f6;
  --surface: #faf9f6;
  --surface-high: #fffdfa;
  --ink: #201f1a;
  --ink-soft: #68685f;
  --line: #deded4;
  --line-strong: #b8bcb0;
  --ai: #286a5b;
  --human: #9a5f3c;
  --error: #a23e3a;
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
  min-height: 100dvh;
}

.auth-header {
  height: 80px;
  background: var(--paper);
}

.auth-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.auth-header nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-header nav a:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.auth-header nav a:hover {
  color: var(--human);
}

.login-shell {
  width: calc(100% - 64px);
  max-width: 1536px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 0;
  min-height: calc(100dvh - 108px);
  padding-bottom: 28px;
}

.auth-scene {
  background: #24372f;
  color: #eef0e7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(36px,4.6vw,76px);
  border-radius: 2px;
}

.auth-editorial {
  padding-top: clamp(16px,4.5vh,64px);
}

.auth-editorial>.eyebrow {
  font: 500 11px/1.6 var(--sans);
  letter-spacing: .15em;
  color: #b6cabe;
  display: block;
  max-width: 34em;
}

.auth-manifesto {
  margin-top: 38px;
  font: 400 clamp(54px,5.5vw,90px)/.99 var(--serif);
  letter-spacing: -.056em;
  white-space: nowrap;
}

.auth-manifesto em {
  color: #deb092;
  letter-spacing: -.05em;
  line-height: 1.1;
}

.auth-editorial-copy {
  font: 250 23px/1.55 var(--sans);
  letter-spacing: -.014em;
  color: #c7d1c6;
  max-width: 26ch;
  margin-top: 32px;
}

.auth-side-foot {
  border-top: 1px solid #52655a;
  padding-top: 25px;
  margin-top: 80px;
}

.auth-side-foot .side-note {
  font: 400 24px/1.2 var(--serif);
  letter-spacing: -.03em;
  color: #edf0e6;
}

.auth-side-foot p:not(.side-note) {
  font-size: 15px;
  font-weight: 300;
  color: #bcc9bd;
  margin-top: 10px;
  max-width: 30ch;
}

.inside-study {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  min-height: 40px;
  margin-top: 18px;
  padding: 0 0 3px;
  border-bottom: 1px solid #83988a;
  color: #dae3d6;
  font-size: 14px;
}

.inside-study:hover {
  color: #fff;
}

.mobile-inside {
  display: none;
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 584px;
  justify-self: center;
  padding: 38px clamp(28px,4.4vw,70px);
  min-width: 0;
}

.auth-kicker {
  font: 500 11px/1.5 var(--sans);
  letter-spacing: .14em;
  color: var(--human);
  margin-bottom: 19px;
}

.auth-title {
  font: 400 clamp(38px,3.3vw,52px)/1.02 var(--serif);
  letter-spacing: -.053em;
  max-width: 12ch;
  outline: 0;
}

.auth-sub {
  font: 300 18px/1.5 var(--sans);
  letter-spacing: -.014em;
  color: var(--ink-soft);
  margin-top: 18px;
}

.auth-form-area {
  margin-top: 25px;
}

.auth-legal {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 27px;
  max-width: 38ch;
}

.marketing-mode [data-slot=card-header] {
  display: none;
}

.marketing-mode form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.marketing-mode [data-slot=form-item] {
  margin-bottom: 19px;
}

.marketing-mode label {
  display: block;
  font: 400 14px/1.4 var(--sans);
  color: var(--ink);
  margin-bottom: 7px;
}

.auth-step-form>label {
  margin-top: 17px;
}

.auth-step-form>label:first-child {
  margin-top: 0;
}

.marketing-mode input:not(.otp-box) {
  display: block;
  width: 100%;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface-high);
  padding: 10px 12px;
  font: 350 17px/1.3 var(--sans);
  min-width: 0;
  box-shadow: 0 1px 0 #fff;
}

.marketing-mode input::placeholder {
  color: #83867b;
}

.marketing-mode input:focus {
  outline: 2px solid #73998b;
  outline-offset: 2px;
  border-color: #426f60;
}

.marketing-mode input[aria-invalid=true] {
  border-color: var(--error);
}

.marketing-mode input:disabled {
  background: #f1f0ea;
  color: #777b71;
}

.password-field {
  position: relative;
}

.marketing-mode .password-field input {
  padding-right: 66px;
}

.password-toggle {
  position: absolute;
  right: 4px;
  top: 4px;
  height: 40px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.password-toggle:hover {
  color: var(--ink);
}

.field-error {
  font-size: 13px;
  line-height: 1.45;
  margin: 7px 0 0;
  color: var(--error);
}

.auth-step>p:not(.auth-step-footer) {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
  margin-bottom: 20px;
}

.auth-step strong {
  color: var(--ink);
}

.marketing-mode form>button[type=submit] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: #253a30;
  color: #f9faf4;
  border: 1px solid #253a30;
  border-radius: 3px;
  font: 400 16px/1.4 var(--sans);
  margin-top: 8px;
}

.marketing-mode form>button[type=submit]:hover:not(:disabled) {
  background: #365146;
}

.marketing-mode .auth-step-form>button[type=submit] {
  margin-top: 23px;
}

.auth-alt {
  margin-top: 23px;
}

.auth-or {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.auth-or:before,.auth-or:after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.auth-alt>button,.auth-step-secondary {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  min-height: 46px;
  border-radius: 3px;
  font-size: 15px;
  padding: 9px 14px;
}

.auth-alt>button:hover,.auth-step-secondary:hover {
  background: #edf1e9;
}

.auth-step-secondary {
  margin-top: 12px;
}

.marketing-mode [data-slot=card-footer],.auth-step-footer {
  margin-top: 23px;
  display: flex;
  gap: 6px;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-soft);
}

.marketing-mode [data-slot=card-footer] button,.auth-step-footer a,.inline-link {
  border-bottom: 1px solid var(--line-strong);
  padding: 0 0 2px;
  min-height: 28px;
  color: var(--ink);
  font-size: 14px;
}

.auth-step-footer #edit-account {
  margin-right: auto;
}

.auth-step-footer button:hover,.auth-step-footer a:hover {
  color: var(--human);
}

.auth-notice,.auth-step-error {
  display: none;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  line-height: 1.45;
  font-size: 14px;
  margin-bottom: 20px;
  background: transparent;
}

.auth-notice svg,.auth-step-error svg {
  flex: none;
  margin-top: 2px;
}

.auth-notice.is-error,.auth-step-error {
  color: var(--error);
  border-color: #ceaaa0;
}

.auth-notice.is-ok {
  color: var(--ai);
  border-color: #abc8ba;
}

[data-state=error] .auth-notice.is-error,[data-state=error] .auth-step-error,[data-state=verified] .auth-notice.is-ok {
  display: flex;
}

.auth-step-error {
  margin-top: 14px;
  margin-bottom: 0;
}

.when-busy {
  display: none;
}

[data-state=busy] .when-busy {
  display: inline;
}

[data-state=busy] .when-idle {
  display: none;
}

.otp-boxes {
  display: flex;
  gap: 9px;
  margin: 5px 0 14px;
}

.otp-box {
  width: 0;
  flex: 1;
  min-width: 0;
  max-width: 62px;
  height: 64px;
  text-align: center;
  background: var(--surface-high);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font: 400 25px/1 var(--mono);
  caret-color: var(--ai);
}

.otp-box.is-filled {
  border-color: #426f60;
}

@media (min-width:1600px) {
  .login-card {
    max-width: 600px;
  }
  .login-shell {
    max-width: 1504px;
  }
  .auth-scene {
    padding: 66px;
  }
  .auth-manifesto {
    font-size: 86px;
  }
}

@media (max-width:1050px) {
  .auth-manifesto {
    font-size: 55px;
  }
  .auth-scene {
    padding: 35px;
  }
  .login-card {
    padding-inline: 35px;
  }
}

@media (max-width:900px) {
  .login-shell {
    display: block;
    width: auto;
    min-height: calc(100dvh - 72px);
    margin: 0;
    padding: 0 0 34px;
  }
  .auth-scene {
    display: none;
  }
  .login-card {
    padding: 32px 28px 40px;
    max-width: 490px;
    margin: auto;
  }
  .auth-title {
    font-size: 46px;
    max-width: 15ch;
  }
  .auth-header {
    height: 72px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-inside {
    display: flex;
    color: var(--ink-soft);
    width: fit-content;
    border-color: var(--line-strong);
    font-size: 13px;
    margin-top: 10px;
  }
  .mobile-inside:hover {
    color: var(--human);
  }
  .auth-legal {
    margin-top: 24px;
  }
}

@media (max-width:400px) {
  .auth-header {
    height: 66px;
  }
  .auth-header .wrap {
    width: calc(100% - 36px);
  }
  .auth-header nav {
    gap: 16px;
    font-size: 14px;
  }
  .auth-header .hide-sm {
    display: none;
  }
  .login-card {
    padding: 30px 22px 65px;
  }
  .auth-title {
    font-size: 41px;
  }
  .auth-sub {
    font-size: 17px;
  }
  .auth-kicker {
    font-size: 10px;
    margin-bottom: 17px;
  }
  .auth-form-area {
    margin-top: 24px;
  }
  .auth-step-form>label {
    margin-top: 15px;
  }
  .otp-boxes {
    gap: 6px;
  }
  .otp-box {
    height: 55px;
    font-size: 22px;
  }
  .auth-step-footer {
    font-size: 13px;
  }
}