/* ════════════════════════════════════════════════
   Auth screens
   Sign in, sign up, forgot password, reset password.
════════════════════════════════════════════════ */

#s-auth { background: var(--bg); min-height: 100vh; }

#s-auth .entry-wrap {
  max-width: 460px;
  margin: 0 auto;
}

/* Form layout */
.auth-form {
  display: block;
  margin-top: 8px;
}

/* Row with checkbox + forgot link */
.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

/* Checkbox + label combo */
.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text2);
  cursor: pointer;
  user-select: none;
}
.auth-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}
.auth-checkbox span { line-height: 1.4; }

/* In-prose link buttons (forgot password, switch mode) */
.auth-link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition);
}
.auth-link:hover { color: var(--silver-dk); text-decoration: underline; }

/* Inline links inside terms label */
.auth-link-inline {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}
.auth-link-inline:hover { text-decoration: underline; color: var(--silver-dk); }

/* Switch mode prompt (e.g. "New here? Create an account") */
.auth-switch {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text2);
}
.auth-switch .auth-link {
  font-size: 13px;
  margin-left: 6px;
}

/* "(optional)" tag next to labels */
.auth-optional {
  font-weight: 400;
  color: var(--text3);
  letter-spacing: 0;
  text-transform: none;
  font-size: 11px;
}

/* Logged-out CTA on entry screen */
.auth-cta {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.auth-cta__text {
  font-size: 13px;
  color: var(--text2);
}
.auth-cta__text strong { color: var(--silver-dk); }

/* Logged-in indicator on dashboard header */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text2);
  margin-right: 6px;
}
.user-chip__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  color: var(--silver-dk);
  font-size: 13px;
}

/* ── Mobile breakpoint ───────────────────────── */
@media (max-width: 600px) {
  #s-auth .entry-wrap {
    padding: 28px 18px 36px;
    max-width: none;
  }

  /* Logo + tagline tighter */
  #s-auth .logomark { margin-bottom: 22px; }

  /* Auth row — checkbox + forgot link can wrap */
  .auth-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Switch prompt at the bottom */
  .auth-switch { font-size: 12px; }
}

#s-auth { position: relative; }
