/*
 * Auth pages (login + change-password) — standalone full-screen centered shell.
 * Page CSS is justified: these pages have no sk-layout; the centered-card composition
 * is page-specific and not covered by component defaults (rules/05 §5.0).
 * Design source: Figma 41-13755 (login), 182-19150 (change-password).
 * All colors are theme-base tokens (rules/05 §5.2).
 */

/* Full-screen backdrop, card centered (auth viewport exception, rules/04 §4.1).
   Shared auth/error background: white + soft purple gradient curve (Figma common-background 174-18257). */
.auth-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 80px;
  background-color: var(--background-bg-secondary);
  /* Pattern overflows the viewport as in Figma (size 163%×148%, center top): the curve
     sweeps up diagonally from the bottom-right corner. See common-background 174-18257. */
  background-image: url("/assets/images/auth-bg.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 163% 148%;
}

/* Card: 480px, white, 1px border, 3px radius, shadow-xs (Figma 41:13756). */
.auth-card {
  position: relative;
  width: 480px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px 32px 0;
  background: var(--background-bg-secondary);
  border: 1px solid var(--border-border-primary);
  border-radius: 3px;
  box-shadow: var(--shadow-xs-0);
}
/* Change-password card holds three labeled rows + a button stack — taller, more bottom space. */
.auth-card--wide {
  gap: 24px;
  padding-bottom: 32px;
}

/* Title: 20px SemiBold, centered (login secondary tone; change-password primary tone).
   First child of the card → its top spacing comes from the card's 32px padding-top. */
.auth-title {
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--foreground-fg-secondary);
}
.auth-card--wide .auth-title {
  color: var(--foreground-fg-primary);
}

/* Change-password notice: 2 lines, 14px, centered, secondary. */
.auth-notice {
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--foreground-fg-secondary);
}

/* Form stack. */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.auth-card--wide .auth-form {
  gap: 24px;
}
.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Change-password: left label + right input on one row. */
.auth-field-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: start;
  column-gap: 16px;
}
.auth-field-label {
  padding-top: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--foreground-fg-primary);
  white-space: nowrap;
}
/* The input's error message must align under the field (not the label) — let it span column 2. */
.auth-field-row sk-input {
  display: block;
  min-width: 0;
}

/* Button stack (change-password: submit + Back to Login). */
.auth-button-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Bottom divider on the login card (Figma: full-width hairline below the form). */
.auth-divider {
  height: 1px;
  width: 100%;
  background: var(--border-border-primary);
}
