/* account.css - the game-page chrome (header/back-link/account chip) and
   primary-button classes the sliding_puzzle module's games.html expects
   from its host -- see sliding_puzzle/README.md's integration contract.
   Reuses tokens from styles.css. */

.course-shell {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  padding: 32px clamp(16px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  align-self: flex-start;
}

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

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 6px 12px 6px 16px;
  font-size: 13px;
  color: var(--text);
}

.account-chip[hidden] {
  display: none;
}

.account-signout {
  background: transparent;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.account-signout:hover {
  color: var(--accent);
}

.course-hero {
  max-width: 760px;
  width: 100%;
  margin: 24px auto 0;
  text-align: center;
  padding: 36px 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.course-title {
  font-family: Georgia, serif;
  font-size: 36px;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -.01em;
}

.course-subtitle {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 28px;
}

.course-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 14px;
  background: linear-gradient(180deg, #3fe6a8, #1f9d6f);
  color: #06170f;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(52, 211, 153, .25);
  transition: transform .12s ease, box-shadow .2s ease;
  text-decoration: none;
  text-align: center;
}

.course-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(52, 211, 153, .32);
}

.course-primary:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.course-msg {
  margin-top: 14px;
  font-size: 13px;
  min-height: 18px;
  color: var(--muted);
}

.course-msg.error { color: #f0806a; }
.course-msg.success { color: var(--accent); }
.course-msg.info { color: var(--accent); }

/* -- Login page (static/login.html + login.js) -------------------------- */

.auth-shell {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  padding: 32px clamp(16px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}

.auth-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 36px 32px;
  max-width: 440px;
  width: 100%;
  margin-top: 48px;
}

.auth-brand {
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.auth-brand-text {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent);
}

.auth-tagline {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-top: 4px;
}

.auth-title {
  font-family: Georgia, serif;
  font-size: 28px;
  margin: 0 0 8px;
  color: var(--text);
}

.auth-subtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 24px;
}

.auth-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  margin-bottom: 16px;
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .18);
}

.auth-code {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 22px;
  letter-spacing: .4em;
  text-align: center;
}

.auth-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 14px;
  background: linear-gradient(180deg, #3fe6a8, #1f9d6f);
  color: #06170f;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(52, 211, 153, .25);
  transition: transform .12s ease, box-shadow .2s ease;
  text-decoration: none;
  text-align: center;
}

.auth-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(52, 211, 153, .32);
}

.auth-primary:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.auth-secondary {
  margin-top: 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  display: block;
  width: 100%;
  text-align: center;
}

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

.auth-sent-to {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
}

.auth-sent-to strong { color: var(--text); }

.auth-msg {
  margin-top: 14px;
  font-size: 13px;
  min-height: 18px;
  color: var(--muted);
  text-align: center;
}

.auth-msg.error   { color: #f0806a; }
.auth-msg.success { color: var(--accent); }
.auth-msg.info    { color: var(--accent); }

/* -- Legal/document pages (static/privacy.html) -------------------------
   Reuses .auth-shell for the full-page wrapper + back-link, but needs a
   much wider content panel than .auth-card's 440px (a login form vs. a
   long-form policy document) -- a dedicated class rather than widening
   .auth-card itself and affecting the login page too. */

.legal-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px clamp(20px, 4vw, 48px) 44px;
  max-width: 760px;
  width: 100%;
  margin-top: 24px;
}

.legal-title {
  font-family: Georgia, serif;
  font-size: 30px;
  margin: 0 0 6px;
  color: var(--text);
}

.legal-updated {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 28px;
}

.legal-card h2 {
  font-family: Georgia, serif;
  font-size: 19px;
  color: var(--text);
  margin: 32px 0 10px;
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.legal-card p {
  margin: 0 0 14px;
}

.legal-card ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.legal-card a {
  color: var(--accent);
}

.legal-card strong {
  color: var(--text);
}
