/* NXTL Account Auth & Recovery Screen Styling — Simplification Pass 03
   Side-by-side cards (>=760px), stacked on mobile
   Target typography scale & Section 3 spacing tokens
*/

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--canvas);
  padding: 2rem 1.5rem;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  width: 100%;
  margin: 0 auto 2rem;
}

.auth-logo-link {
  display: inline-flex;
  align-items: center;
}

.auth-logo {
  display: block;
  width: 132px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 597 / 78;
  object-fit: contain;
}

.auth-help-link {
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.auth-help-link:hover {
  color: var(--text);
}

.auth-main {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Context Eyebrow (e.g. Partner application return or checkout return) */
.auth-context {
  background: var(--surface-raised);
  border: 1px solid var(--hairline-accent);
  border-radius: var(--radius-l);
  padding: var(--card-pad-desktop);
  margin-bottom: var(--pane-gap);
}

.auth-context__eyebrow {
  font-size: 0.8125rem; /* 13px */
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.auth-context__title {
  font-family: var(--font-heading);
  font-size: 1.1875rem; /* 19px */
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.auth-context__desc {
  font-size: 0.9375rem; /* 15px */
  color: var(--text-secondary);
}

/* Two-Card Grid */
.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--pane-gap);
  align-items: stretch;
  min-inline-size: 0;
}

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

.auth-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 767px) {
  .auth-card {
    padding: 1.25rem 1rem;
  }
}

.auth-card__eyebrow {
  font-size: 0.8125rem; /* 13px */
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.auth-card__title {
  font-family: var(--font-heading);
  font-size: 1.375rem; /* 22px */
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.auth-card__sub {
  font-size: 0.9375rem; /* 15px */
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--field-group-gap); /* 18px */
  flex: 1;
}

.auth-row-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem; /* 14px */
}

.auth-remember {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.90625rem; /* 14.5px */
  line-height: 1.45;
  cursor: pointer;
}

.auth-remember input[type="checkbox"] {
  accent-color: var(--accent);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.auth-lostpw {
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--duration-fast);
}

.auth-lostpw:hover {
  color: var(--accent-hover);
}

.auth-card__foot {
  font-size: 0.84375rem; /* 13.5px */
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* Legal Footer */
.auth-footer {
  max-width: 960px;
  width: 100%;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84375rem; /* 13.5px */
  color: var(--text-muted);
}

.auth-footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.auth-footer__links a {
  color: var(--text-muted);
}

.auth-footer__links a:hover {
  color: var(--text);
}
