.auth-brand-stage {
  border-bottom: 4px solid var(--copper);
  background: var(--green-deep);
  color: white;
  padding: 20px 20px 18px;
}

.auth-brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.auth-brand-lockup .eyebrow {
  margin: 0;
  color: #f0b08e;
}

.auth-brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

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

.auth-brand-stage h1 {
  margin: 0 0 8px;
  color: white;
  font-size: 1.9rem;
  line-height: 1;
}

.auth-brand-promise {
  max-width: 340px;
  margin: 0;
  color: white;
  font-size: 1.05rem;
  font-weight: 780;
  line-height: 1.28;
}

.auth-brand-message {
  max-width: 350px;
  margin: 18px 0 0;
  border-left: 3px solid #d7865f;
  padding-left: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  line-height: 1.45;
}

.auth-principles {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 13px;
}

.auth-brand-message,
.auth-principles {
  display: none;
}

.auth-tour-stage {
  border-top: 4px solid var(--copper);
  background: var(--green-deep);
  color: white;
  padding: 22px 20px;
}

.auth-principles span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.74rem;
  font-weight: 720;
  line-height: 1.3;
  white-space: nowrap;
}

.auth-sample-entry {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.auth-sample-entry strong,
.auth-sample-entry span {
  display: block;
}

.auth-sample-entry strong {
  margin-bottom: 3px;
  color: white;
  font-size: 0.94rem;
}

.auth-sample-entry span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.38;
}

.auth-outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  border-block: 1px solid rgba(255, 255, 255, 0.16);
  padding-block: 11px;
}

.auth-outcomes span {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 740;
  line-height: 1.25;
}

.auth-outcomes svg {
  width: 17px;
  height: 17px;
  color: #f0b08e;
}

.auth-sample-picker {
  display: grid;
  gap: 6px;
  margin: 0;
  color: white;
}

.auth-sample-picker > span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 760;
}

.auth-sample-picker select {
  width: 100%;
  min-height: 48px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  background: white;
  color: var(--green-deep);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-sample-entry .auth-sample-range {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.74rem;
}

.auth-sample-button {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: white;
  color: var(--green-deep);
  box-shadow: none;
}

.auth-brand-stage.compact .auth-brand-lockup {
  margin-bottom: 14px;
}

.auth-brand-stage.compact .auth-brand-message,
.auth-brand-stage.compact .auth-principles {
  display: none;
}

.auth-entry-panel {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 14px;
  background: var(--surface);
  padding: 22px 20px 0;
}

.auth-entry-heading h2 {
  margin: 0 0 7px;
  color: var(--green-deep);
}

.auth-entry-heading p:last-child {
  margin: 0;
}

.auth-invitation-notice {
  display: grid;
  gap: 6px;
  border: 1px solid #b7cec4;
  border-radius: var(--radius);
  background: #f1f8f4;
  color: var(--green-deep);
  padding: 12px;
}

.auth-invitation-notice strong,
.auth-invitation-notice span,
.auth-invitation-notice small {
  display: block;
}

.auth-invitation-notice small {
  color: var(--muted);
  line-height: 1.4;
}

.auth-invitation-notice.error {
  border-color: #e3b8b8;
  background: #fff1f1;
  color: #8a2929;
}

.auth-invitation-tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.auth-invitation-tracks span {
  border-radius: 999px;
  background: white;
  color: var(--green-deep);
  font-size: 0.76rem;
  font-weight: 760;
  padding: 4px 8px;
}

.auth-invitation-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-invitation-method {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 84px;
  border: 1px solid #b7cec4;
  border-radius: var(--radius);
  background: #fff;
  color: var(--green-deep);
  padding: 12px;
  text-align: left;
}

.auth-invitation-method.active {
  border-color: var(--green);
  background: #edf6f1;
  box-shadow: inset 0 0 0 1px var(--green);
}

.auth-invitation-method svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.auth-invitation-method span,
.auth-invitation-method strong,
.auth-invitation-method small {
  display: block;
}

.auth-invitation-method strong {
  line-height: 1.25;
}

.auth-invitation-method small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.auth-entry-panel input[readonly] {
  border-color: #b7cec4;
  background: #f1f5f3;
  color: var(--green-deep);
  font-weight: 700;
}

.auth-footer-note {
  margin: 20px 22px 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
}

.phone:has(.auth-screen) {
  width: min(100%, 680px);
}

@media (min-width: 521px) {
  .phone:has(.auth-screen) {
    min-height: 0;
  }
}

@media (min-width: 760px) {
  .phone:has(.auth-screen) {
    width: min(100%, 1040px);
  }

  .auth-screen .screen-body {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.95fr);
    grid-template-areas:
      "brand entry"
      "tour entry"
      "footer footer";
    align-content: start;
  }

  .auth-brand-stage {
    grid-area: brand;
    border-bottom: 0;
    padding: 34px 32px 28px;
  }

  .auth-brand-lockup {
    margin-bottom: 20px;
  }

  .auth-brand-stage h1 {
    font-size: 2.5rem;
  }

  .auth-brand-promise {
    font-size: 1.28rem;
  }

  .auth-brand-message {
    display: block;
  }

  .auth-principles {
    display: grid;
  }

  .auth-tour-stage {
    grid-area: tour;
    padding: 26px 32px 32px;
  }

  .auth-entry-panel {
    grid-area: entry;
    min-height: 100%;
    border-left: 1px solid var(--line);
    padding: 36px clamp(28px, 4vw, 46px) 34px;
  }

  .auth-footer-note {
    grid-area: footer;
    margin: 0;
    padding: 16px 24px;
  }
}

@media (max-width: 380px) {
  .auth-brand-stage {
    padding: 18px 18px 16px;
  }

  .auth-brand-stage h1 {
    font-size: 1.75rem;
  }

  .auth-brand-promise {
    font-size: 1rem;
  }

  .auth-principles {
    gap: 6px;
  }

  .auth-principles span {
    font-size: 0.7rem;
  }

  .auth-entry-panel {
    padding-inline: 18px;
  }

  .auth-tour-stage {
    padding-inline: 18px;
  }

  .auth-invitation-methods {
    grid-template-columns: 1fr;
  }
}
