.auth-body .auth-main {
  padding-top: 0.55rem;
  padding-bottom: 1.5rem;
}

.auth-page-login .auth-main {
  padding-top: 0.42rem;
}

.auth-hero-single-column .auth-hero {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 44rem);
  margin-right: auto;
}

.auth-entry-single-column .auth-entry-grid {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 44rem);
  margin-right: auto;
}

.auth-entry-wide.auth-entry-single-column .auth-entry-grid {
  width: min(100%, 54rem);
}

.auth-layout-focused .auth-hero {
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.auth-hero-single-column .auth-hero .page-title {
  max-width: 14ch;
}

.auth-hero-single-column .auth-hero .page-subtitle {
  max-width: 34rem;
}

.auth-entry-single-column .auth-form-panel {
  max-width: 44rem;
}

.auth-entry-wide.auth-entry-single-column .auth-form-panel {
  max-width: 54rem;
}

.auth-form-panel .auth-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.auth-page-header {
  margin: 0 0 1rem;
}

.auth-page-header h1 {
  margin: 0;
  font: 700 1.95rem/1.05 var(--serif);
  letter-spacing: -0.03em;
}

.auth-form-eyebrow {
  margin-bottom: 0.45rem;
}

.auth-hero {
  margin-bottom: 0.9rem;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(19rem, 0.9fr);
  gap: 0.95rem 1rem;
  align-items: stretch;
}

.auth-hero .page-title {
  max-width: 17ch;
}

.auth-hero .page-subtitle {
  max-width: 36rem;
}

.auth-hero-actions {
  margin-top: 0.95rem;
}

.auth-layout-focused .auth-hero {
  margin-bottom: 0.55rem;
}

.auth-hero-copy {
  min-width: 0;
}

.auth-hero-proof {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.9rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(18, 60, 53, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.auth-hero-proof-eyebrow {
  margin-bottom: 0;
}

.auth-hero-proof-title {
  margin: 0;
  font: 780 1.24rem/1.12 var(--sans);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.auth-hero-proof-note {
  margin: 0;
  color: rgba(29, 35, 39, 0.72);
  line-height: 1.5;
}

.auth-hero-proof-list {
  display: grid;
  gap: 0.6rem;
}

.auth-hero-proof-item {
  display: grid;
  gap: 0.18rem;
  padding: 0.72rem 0.78rem;
  border-radius: 0.92rem;
  border: 1px solid rgba(18, 60, 53, 0.1);
  background: rgba(252, 248, 240, 0.94);
}

.auth-hero-proof-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(30, 35, 36, 0.54);
}

.auth-hero-proof-value {
  color: var(--forest);
  font-size: 0.94rem;
  line-height: 1.35;
}

.auth-entry-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(18rem, 0.9fr);
  align-items: start;
}

.auth-form-panel,
.auth-support-panel {
  min-width: 0;
}

.auth-support-list {
  gap: 0.72rem;
}

.auth-support-item {
  padding: 0.88rem 0.92rem;
  border: 1px solid rgba(22, 61, 54, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
}

.auth-support-item h3 {
  margin: 0 0 0.25rem;
  font: 780 1.05rem/1.15 var(--sans);
  letter-spacing: -0.02em;
}

.auth-support-item p {
  font-size: 0.92rem;
}

.auth-form-note {
  margin-bottom: 1rem;
}

.auth-layout-focused .auth-form-note {
  margin-bottom: 0.8rem;
}

.auth-form-heading {
  margin-bottom: 0.75rem;
}

.auth-form {
  margin-top: 0.15rem;
}

.auth-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.9rem;
  align-items: center;
  margin-top: 0.15rem;
}

.auth-submit {
  min-width: 11rem;
}

.auth-form-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  align-items: center;
}

.auth-link-button,
.auth-provider-link,
.auth-link {
  text-decoration: none;
}

.auth-inline-link {
  color: var(--forest);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-inline-link:hover,
.auth-inline-link:focus-visible {
  color: #0f342d;
}

.auth-provider-actions {
  margin-top: 1rem;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.9rem;
  align-items: center;
  margin-top: 0.15rem;
}

.auth-field {
  display: block;
  margin-top: 1rem;
}

.auth-field span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.72rem 0.82rem;
  border-radius: 0.95rem;
  border: 1px solid var(--line);
  background: rgba(252, 248, 240, 0.96);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(22, 61, 54, 0.12);
}

.auth-button,
.auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border-radius: 999px;
  padding: 0.68rem 1.08rem;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.auth-button {
  border: 0;
  background: var(--forest);
  color: #fffef9;
  cursor: pointer;
}

.auth-button:hover,
.auth-button:focus-visible {
  background: #0f342d;
}

.auth-link {
  background: rgba(22, 61, 54, 0.08);
  color: var(--forest);
}

.auth-link:hover,
.auth-link:focus-visible {
  background: rgba(22, 61, 54, 0.14);
}

.auth-errors {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem 0.9rem 1.65rem;
  border-radius: 1rem;
  border: 1px solid rgba(127, 68, 56, 0.2);
  background: rgba(127, 68, 56, 0.08);
  color: #7f4438;
}

.auth-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(22, 61, 54, 0.12);
  background: rgba(22, 61, 54, 0.08);
  color: var(--forest);
}

.auth-note--warning {
  border-color: rgba(187, 140, 89, 0.24);
  background: rgba(187, 140, 89, 0.14);
  color: #7c5635;
}

.auth-result-title {
  margin-top: 0.9rem;
  font-weight: 700;
}

.auth-code {
  word-break: break-all;
  background: rgba(252, 248, 240, 0.96);
  border: 1px solid rgba(22, 61, 54, 0.12);
  border-radius: 0.95rem;
  padding: 0.75rem;
}

.auth-code-inline {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.auth-mfa-panel {
  margin-top: 1rem;
}

.auth-factor-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.auth-factor-card {
  border: 1px solid rgba(22, 61, 54, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem;
}

.auth-factor-card h2 {
  margin: 0.18rem 0 0;
  font: 780 1.24rem/1.12 var(--sans);
  letter-spacing: -0.02em;
}

.auth-factor-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.auth-factor-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.auth-factor-pill--recommended {
  background: rgba(22, 61, 54, 0.1);
  color: var(--forest);
}

.auth-factor-pill--weaker {
  background: rgba(187, 140, 89, 0.16);
  color: #7c5635;
}

.auth-factor-status {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  color: #445040;
}

.auth-qr-layout {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.auth-qr-frame {
  background: rgba(252, 248, 240, 0.96);
  border: 1px solid rgba(22, 61, 54, 0.12);
  border-radius: 1rem;
  padding: 1rem;
}

.auth-qr-surface {
  width: min(100%, 240px);
  min-height: 240px;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.auth-qr-surface svg {
  width: 100%;
  height: auto;
  display: block;
}

.auth-qr-placeholder {
  color: #5a6456;
  font-size: 0.95rem;
}

.auth-manual-setup h2 {
  margin: 0.18rem 0 0;
  font: 780 1.24rem/1.12 var(--sans);
  letter-spacing: -0.02em;
}

.auth-manual-setup {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(22, 61, 54, 0.12);
  background: rgba(255, 255, 255, 0.74);
}

.auth-muted {
  margin: 0.5rem 0 0;
  color: #5a6456;
}

.auth-metadata {
  margin: 0.75rem 0 0;
}

.auth-metadata div + div {
  margin-top: 0.4rem;
}

.auth-metadata dt {
  font-size: 0.8rem;
  font-weight: 700;
  color: #5a6456;
}

.auth-metadata dd {
  margin: 0.15rem 0 0;
}

.auth-recovery-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 1rem;
}

.auth-recovery-note {
  margin-top: 0.8rem;
}

.auth-recovery-code {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  background: rgba(252, 248, 240, 0.96);
  border: 1px solid rgba(22, 61, 54, 0.12);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-align: center;
}

@media (min-width: 700px) {
  .auth-factor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-qr-layout {
    grid-template-columns: minmax(240px, 260px) minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 900px) {
  .auth-entry-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-hero-proof {
    padding: 0.85rem 0.9rem;
  }
}

@media (max-width: 640px) {
  .auth-hero .page-title {
    max-width: 15ch;
  }

  .auth-hero .page-subtitle {
    max-width: none;
  }

  .auth-hero-proof {
    gap: 0.55rem;
  }

  .auth-hero-proof-title {
    font-size: 1.03rem;
  }

  .auth-hero-proof-note {
    font-size: 0.9rem;
  }

  .auth-hero-proof-list {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.08rem;
    scroll-snap-type: x proximity;
  }

  .auth-hero-actions {
    margin-top: 0.85rem;
  }

  .auth-hero-proof-item {
    min-width: 11rem;
    flex: 0 0 11rem;
    padding: 0.62rem 0.68rem;
    scroll-snap-align: start;
  }

  .auth-hero-proof-value {
    font-size: 0.9rem;
  }

  .auth-support-item {
    padding: 0.78rem 0.82rem;
  }
}

@media (min-width: 961px) and (max-height: 820px) {
  .auth-page-login .brand-caption {
    display: none;
  }

  .auth-page-login .app-header {
    padding-top: 0.72rem;
  }

  .auth-page-login .auth-main {
    padding-top: 0.08rem;
  }

  .auth-layout-focused .auth-hero {
    margin-bottom: 0.44rem;
    gap: 0.56rem 0.8rem;
    padding: 0.7rem 0.8rem;
    grid-template-columns: minmax(0, 1.18fr) minmax(16.5rem, 0.78fr);
  }

  .auth-layout-focused.auth-hero-single-column .auth-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-layout-focused .auth-hero .page-title {
    max-width: 18ch;
    font-size: clamp(1.32rem, 1.95vw, 1.72rem);
  }

  .auth-layout-focused .auth-hero .page-subtitle {
    max-width: 29rem;
    font-size: 0.88rem;
    line-height: 1.34;
  }

  .auth-layout-focused .auth-hero-actions {
    display: none;
  }

  .auth-layout-focused .auth-hero-proof-eyebrow {
    display: none;
  }

  .auth-layout-focused .auth-hero-proof {
    gap: 0.42rem;
    padding: 0.58rem 0.64rem;
  }

  .auth-layout-focused .auth-hero-proof-title {
    font-size: 0.98rem;
    line-height: 1.14;
  }

  .auth-layout-focused .auth-hero-proof-note {
    display: none;
  }

  .auth-layout-focused .auth-hero-proof-list {
    gap: 0.34rem;
  }

  .auth-layout-focused .auth-hero-proof-item {
    gap: 0.1rem;
    padding: 0.46rem 0.52rem;
  }

  .auth-layout-focused .auth-hero-proof-label {
    font-size: 0.6rem;
  }

  .auth-layout-focused .auth-hero-proof-value {
    font-size: 0.82rem;
    line-height: 1.22;
  }

  .auth-layout-focused .panel {
    padding: 0.82rem;
  }

  .auth-layout-focused .panel-note {
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .auth-layout-focused .auth-field {
    margin-top: 0.82rem;
  }

  .auth-layout-focused .auth-field input {
    padding: 0.64rem 0.74rem;
  }

  .auth-layout-focused .auth-button,
  .auth-layout-focused .auth-link {
    min-height: 2.55rem;
    padding: 0.6rem 0.96rem;
  }

  .auth-layout-focused .auth-support-item {
    padding: 0.66rem 0.72rem;
  }
}

@media (min-width: 961px) and (max-height: 720px) {
  .auth-page-login .auth-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-page-login .auth-hero-proof {
    display: none;
  }

  .auth-page-login .auth-support-panel {
    display: none;
  }
}
