:root {
  color-scheme: light;
  --forest: #173f35;
  --forest-deep: #11382e;
  --sage: #c6dcb7;
  --cream: #f9f8f3;
  --ink: #263b32;
  --muted: #5b6b56;
  --line: #dfe3d9;
  font-family: 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
summary {
  touch-action: manipulation;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

button,
summary {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
}

input:disabled {
  cursor: not-allowed;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 3px solid #6f914c;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  left: 16px;
  top: -100px;
  padding: 14px 20px;
  border-radius: 8px;
  background: white;
  color: var(--forest);
}

.skip-link:focus {
  top: 16px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  min-height: 100svh;
}

.auth-story {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 36px 48px 30px;
  color: #f9f9ef;
  background: var(--forest);
}

.auth-story::before {
  position: absolute;
  top: 170px;
  left: -250px;
  width: 530px;
  height: 530px;
  border: 1px solid #aec79d16;
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.story-top,
.story-bottom,
.auth-panel-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: inherit;
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -1.8px;
  line-height: 1;
  text-decoration: none;
}

.auth-brand-mark {
  display: grid;
  width: 31px;
  height: 33px;
  place-items: center;
  border-radius: 12px 12px 12px 3px;
  background: var(--sage);
  color: var(--forest);
}

.auth-brand-mark svg {
  width: 23px;
  height: 23px;
}

.brand-period {
  color: var(--sage);
}

.story-location {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #e2e9d8;
  font-size: 12px;
}

.story-location svg {
  width: 15px;
  height: 15px;
}

.story-copy {
  position: relative;
  margin-top: clamp(55px, 8vh, 92px);
}

.story-eyebrow,
.auth-eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.75px;
  line-height: 1.6;
}

.story-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sage);
}

.story-eyebrow > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.story-copy h2 {
  margin: 20px 0 20px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(37px, 3.7vw, 59px);
  font-weight: 400;
  letter-spacing: -1.8px;
  line-height: 1.1;
}

.story-copy h2 em {
  color: #d4e2bf;
  font-weight: 400;
}

.story-copy > p:last-child {
  margin: 0;
  color: #cedbcd;
  font-size: 14px;
  line-height: 1.8;
}

.story-meal {
  position: relative;
  display: flex;
  min-height: 230px;
  flex: 1;
  align-items: center;
  margin: 24px -20px 27px;
  isolation: isolate;
}

.meal-orbit {
  position: absolute;
  inset: 10px 30px -20px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, #51724b56, #173f3500 70%);
}

.story-meal > img {
  display: block;
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 120px 120px 20px 20px;
  aspect-ratio: 1.45;
}

.meal-caption {
  position: absolute;
  bottom: 10px;
  right: 8px;
  display: flex;
  max-width: calc(100% - 24px);
  align-items: center;
  gap: 11px;
  padding: 13px 17px;
  border: 1px solid #fff9;
  border-radius: 12px;
  background: #faf9eeef;
  color: var(--forest);
  box-shadow: 0 8px 28px #06251a15;
}

.meal-caption-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e4ebd7;
}

.meal-caption strong,
.meal-caption div > span {
  display: block;
}

.meal-caption strong {
  font-size: 11px;
  font-weight: 650;
}

.meal-caption div > span {
  margin-top: 4px;
  color: #5b6b56;
  font-size: 10px;
}

.story-bottom {
  margin-top: auto;
  color: #d1ddc9;
  font-size: 10px;
}

.story-service {
  display: flex;
  align-items: center;
  gap: 9px;
}

.story-service svg {
  width: 14px;
  height: 14px;
}

.auth-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 37px 42px 25px;
}

.auth-panel-top {
  min-height: 33px;
  color: #5b6b56;
  font-size: 12px;
}

.client-space,
.auth-help-link {
  display: flex;
  align-items: center;
  gap: 7px;
}

.client-space svg,
.auth-help-link svg {
  width: 15px;
  height: 15px;
}

.auth-help-link {
  padding: 7px 0 7px 8px;
  text-decoration: none;
}

.auth-help-link:hover,
.auth-footer a:hover,
.auth-secondary-link:hover,
.auth-back:hover {
  color: var(--forest);
  text-decoration: underline;
}

.mobile-brand {
  display: none;
}

.auth-main {
  width: 100%;
  max-width: 390px;
  margin: auto;
  padding: 35px 0;
  outline: none;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-bottom: 37px;
  padding: 4px;
  border: 1px solid #e4e7dc;
  border-radius: 11px;
  background: #efefe7;
}

.auth-tabs a {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #5b6b56;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.auth-tabs a[aria-current='page'] {
  border-color: #e8e8df;
  background: #fffefa;
  color: var(--forest);
  box-shadow: 0 2px 4px #162d1c06;
}

.auth-eyebrow {
  color: #5b6b56;
}

.auth-heading h1 {
  margin: 13px 0 12px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(30px, 2.7vw, 38px);
  font-weight: 400;
  letter-spacing: -1.2px;
  line-height: 1.18;
}

.auth-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.demo-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 23px 0;
  padding: 12px 14px;
  border: 1px solid #dce6d2;
  border-radius: 9px;
  background: #edf2e7;
}

.demo-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin-top: 5px;
  border-radius: 50%;
  background: #6f8c55;
}

.demo-notice p {
  margin: 0;
  color: #53634b;
  font-size: 11px;
  line-height: 1.65;
}

.demo-notice strong {
  color: #4e6643;
  font-weight: 600;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field {
  min-width: 0;
}

.auth-field > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #394b3e;
  font-size: 13px;
  font-weight: 600;
}

.field-label-note {
  padding: 3px 7px;
  border-radius: 4px;
  background: #eaece3;
  color: #526348;
  font-size: 10px;
  font-weight: 500;
}

.field-control {
  display: flex;
  min-width: 0;
  align-items: center;
  border: 1px solid #d5ddcf;
  border-radius: 9px;
  background: #fffefa;
  transition: border-color 150ms ease;
}

.field-control:focus-within {
  border-color: #69875b;
  box-shadow: 0 0 0 3px #8aa27317;
}

.field-control > svg {
  width: 17px;
  height: 17px;
  margin-left: 14px;
  color: #8a9483;
}

.field-control > input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #3c503f;
  font-size: 14px;
  outline: none;
}

.field-control.is-disabled {
  border-color: #e2e4da;
  background: #f1f1e9;
}

.field-control > input:disabled,
.field-control > input::placeholder {
  color: #8c9486;
  opacity: 1;
  -webkit-text-fill-color: #8c9486;
}

.field-control > input:disabled {
  font-size: 12px;
}

.field-hint {
  margin: 6px 0 0;
  color: #5b6b56;
  font-size: 10px;
  line-height: 1.5;
}

.auth-text-link {
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.auth-text-link:hover,
.auth-switch a:hover {
  text-decoration: underline;
}

.recovery-link {
  align-self: flex-end;
  margin-top: -8px;
  padding: 4px 0;
}

.auth-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    transform 150ms ease;
}

.auth-button-primary {
  background: var(--forest);
  color: #fbfcf4;
  box-shadow: 0 4px 8px #163f3510;
}

.auth-button-primary:hover:not(:disabled) {
  background: #245647;
}

.auth-button-primary:active:not(:disabled) {
  transform: translateY(1px);
}

.auth-button-primary:disabled {
  background: #49685a;
}

.auth-button > svg {
  width: 17px;
  height: 17px;
}

.auth-switch {
  margin: 22px 0 0;
  color: #5b6b56;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.auth-switch a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 3px;
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch svg {
  width: 12px;
  height: 12px;
}

.auth-reassurance {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin: 25px 0 0;
  color: #5b6b56;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.auth-reassurance svg {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e4e6dc;
  color: #5b6b56;
  font-size: 11px;
  line-height: 1.5;
}

.auth-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.auth-footer a {
  text-decoration: none;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #5b6b56;
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
}

.auth-checkbox input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--forest);
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 34px;
  color: #5b6b56;
  font-size: 12px;
  text-decoration: none;
}

.auth-back svg {
  width: 15px;
  height: 15px;
  transform: rotate(180deg);
}

.auth-result-icon {
  display: grid;
  width: 65px;
  height: 65px;
  place-items: center;
  margin-bottom: 29px;
  border: 1px solid #dce4d2;
  border-radius: 21px;
  background: #eaf0e2;
  color: #466439;
}

.auth-result-icon svg {
  width: 28px;
  height: 28px;
}

.auth-information {
  margin: 27px 0;
  padding: 18px 19px;
  border: 1px solid #dfe5d7;
  border-radius: 10px;
  background: #eff2e9;
}

.auth-information > strong {
  font-size: 13px;
  font-weight: 600;
}

.auth-information > p {
  margin: 8px 0 0;
  color: #58694e;
  font-size: 12px;
  line-height: 1.8;
}

.auth-secondary-link {
  display: block;
  width: fit-content;
  margin: 22px auto 0;
  color: #5b6b56;
  font-size: 12px;
  text-decoration: none;
  border: 0;
  padding: 0;
  background: transparent;
}

.auth-feedback {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 23px;
  padding: 12px 14px;
  border: 1px solid #cee1bd;
  border-radius: 9px;
  background: #eaf1e3;
  color: #476035;
}

.auth-feedback.is-error {
  border-color: #e6c8b7;
  background: #f8eee7;
  color: #8d4e36;
}

.auth-feedback svg {
  width: 17px;
  height: 17px;
  margin-top: 1px;
}

.auth-feedback p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.7;
}

.auth-faq {
  margin: 26px 0;
  border-top: 1px solid var(--line);
}

.auth-faq details {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.auth-faq summary {
  color: #3c523c;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.auth-faq details p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.auth-prose {
  margin-top: 29px;
}

.auth-prose h2 {
  margin: 25px 0 9px;
  font-size: 14px;
  font-weight: 650;
}

.auth-prose p {
  margin: 0;
  color: #5b6b56;
  font-size: 12px;
  line-height: 1.9;
}

.auth-prose .auth-prose-note {
  margin-top: 25px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #576a4b;
}

@media (min-width: 1450px) {
  .auth-story {
    padding-right: 66px;
    padding-left: 66px;
  }

  .auth-main {
    max-width: 410px;
  }

  .story-meal > img {
    max-height: 420px;
  }
}

@media (max-width: 1100px) {
  .auth-story {
    padding: 30px 32px 27px;
  }

  .story-location {
    display: none;
  }

  .auth-panel {
    padding: 30px 30px 25px;
  }

  .story-copy h2 {
    font-size: 41px;
  }

  .story-copy > p:last-child {
    font-size: 13px;
  }

  .story-meal {
    margin-right: -12px;
    margin-left: -12px;
  }

  .story-bottom {
    flex-wrap: wrap;
  }

  .auth-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 10px;
  }

  .auth-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .auth-layout {
    display: block;
  }

  .auth-story {
    display: none;
  }

  .auth-panel {
    min-height: 100svh;
    padding: 25px 26px 20px;
  }

  .auth-panel-top {
    gap: 12px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e3e7db;
  }

  .mobile-brand {
    display: block;
    margin-right: auto;
    color: var(--forest);
  }

  .auth-brand {
    font-size: 27px;
  }

  .auth-brand-mark {
    width: 28px;
    height: 30px;
  }

  .auth-brand-mark svg {
    width: 21px;
    height: 21px;
  }

  .brand-period {
    color: #7c9a63;
  }

  .client-space {
    display: none;
  }

  .auth-help-link {
    padding: 8px 0 8px 10px;
    color: #5b6b56;
    font-size: 12px;
  }

  .auth-main {
    max-width: 410px;
    padding: 30px 0 40px;
  }

  .auth-tabs {
    margin-bottom: 31px;
  }

  .auth-heading h1 {
    font-size: 34px;
    letter-spacing: -1.1px;
  }

  .auth-heading > p:last-child {
    font-size: 14px;
  }

  .auth-eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  .demo-notice {
    margin-top: 22px;
    margin-bottom: 24px;
  }

  .demo-notice p {
    font-size: 12px;
  }

  .auth-field > label {
    font-size: 13px;
  }

  .field-control > input {
    height: 49px;
    font-size: 16px;
  }

  .field-control > input:disabled {
    font-size: 12px;
  }

  .field-hint {
    font-size: 11px;
  }

  .auth-button {
    min-height: 50px;
    font-size: 14px;
  }

  .auth-switch {
    font-size: 12px;
  }

  .auth-reassurance {
    max-width: 290px;
    margin-right: auto;
    margin-left: auto;
    font-size: 11px;
  }

  .auth-footer {
    align-items: center;
    gap: 10px;
    padding-top: 17px;
    font-size: 10px;
    text-align: center;
  }

  .auth-footer nav {
    justify-content: center;
    gap: 19px;
  }

  .auth-main-detail {
    padding-top: 35px;
  }

  .auth-back {
    margin-bottom: 31px;
  }

  .auth-checkbox,
  .auth-faq summary,
  .auth-faq details p,
  .auth-prose p,
  .auth-information > p {
    font-size: 13px;
  }

  .auth-feedback p {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .auth-panel {
    padding-right: 20px;
    padding-left: 20px;
  }

  .auth-heading h1 {
    font-size: 30px;
  }

  .desktop-break {
    display: none;
  }
}

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