/* ============================================================================
   HINT IT — v2 design system : AUTH PAGES
   ----------------------------------------------------------------------------
   Shared styles for the unauthenticated auth screens rendered inside
   V2AuthLayout: sign-in, forgot-password, reset-password, reset-password-success.
   A centered brand mark above a single white card. All scoped under `.hint-v2`,
   tokens only (no raw hex/px), no `!important`, no bare-element selectors.
   Linked per-page via <HeadContent>.
   ============================================================================ */

/* ---------- Page frame (centered viewport) ---------- */
.hint-v2 .auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-page);
}
.hint-v2 .auth-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--space-6) var(--space-4);
  box-sizing: border-box;
}
.hint-v2 .auth-logo {
  display: inline-flex;
}
.hint-v2 .auth-logo img {
  height: 38px;
  width: auto;
}

/* ---------- Card ---------- */
.hint-v2 .auth-card {
  width: 100%;
  max-width: 26rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-7) var(--space-6);
  box-sizing: border-box;
}

/* ---------- Header (title + subtitle) ---------- */
.hint-v2 .auth-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  text-align: center;
}
.hint-v2 .auth-title {
  font-family: var(--font-display);
  font-weight: var(--fw-display-bold);
  font-size: var(--text-heading);
  color: var(--text-primary);
}
.hint-v2 .auth-subtitle {
  font-size: var(--text-body);
  color: var(--text-secondary);
}

/* ---------- Form ---------- */
.hint-v2 .auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
/* Label row that carries an inline aside (e.g. a "Forgot?" link by Password) */
.hint-v2 .auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}
.hint-v2 .auth-aside-link {
  font-size: var(--text-label);
  font-weight: var(--fw-semibold);
  color: var(--primary);
  text-decoration: none;
}
.hint-v2 .auth-aside-link:hover {
  text-decoration: underline;
}
/* Full-width submit button (pair with `.btn .btn-primary`) */
.hint-v2 .auth-submit {
  width: 100%;
  justify-content: center;
}

/* ---------- Alert (inline error / info — static-SSR pages can't use toasts) ---------- */
.hint-v2 .auth-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-label);
  margin-bottom: var(--space-5);
}
.hint-v2 .auth-alert-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
}
.hint-v2 .auth-alert-info {
  background: var(--bg-elevated);
  color: var(--text-secondary);
}
.hint-v2 .auth-alert .v2-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: var(--space-3xs);
}

/* ---------- Footer (links below the form/card) ---------- */
.hint-v2 .auth-foot {
  margin-top: var(--space-6);
  text-align: center;
  font-size: var(--text-label);
  color: var(--text-secondary);
}
.hint-v2 .auth-foot a {
  color: var(--primary);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}
.hint-v2 .auth-foot a:hover {
  text-decoration: underline;
}

/* ---------- Fine print / disclaimer ---------- */
.hint-v2 .auth-meta {
  margin-top: var(--space-5);
  text-align: center;
  font-size: var(--text-micro);
  color: var(--text-muted);
}
.hint-v2 .auth-meta a {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* ---------- Success state (email-sent / reset-complete) ---------- */
.hint-v2 .auth-success {
  text-align: center;
}
.hint-v2 .auth-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-full);
  background: var(--safe-bg);
  color: var(--safe-text);
}
.hint-v2 .auth-success-icon .v2-icon {
  width: 28px;
  height: 28px;
}
.hint-v2 .auth-success-title {
  font-family: var(--font-display);
  font-weight: var(--fw-display-bold);
  font-size: var(--text-heading);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.hint-v2 .auth-success-text {
  font-size: var(--text-body);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}
.hint-v2 .auth-success .auth-submit {
  margin-top: var(--space-2);
}
