/* ROOVI area styles: auth (welcome, login, join, invite, privacy). Owned by the auth area owner.
   Uses the tokens and components from css/app.css. Every selector is scoped under a class
   prefixed "auth-" so areas never collide. Mobile first (390px), no horizontal scroll. */

/* ----- shared small pieces ----- */
.auth-note { margin-top: var(--space-3); font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
.auth-lead { margin-bottom: var(--space-4); color: var(--text-secondary); overflow-wrap: anywhere; }
.auth-foot { text-align: center; font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.auth-foot .link { font-size: inherit; display: inline-flex; align-items: center; min-height: var(--tap); }
.auth-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.auth-actions .btn { flex: 1 1 200px; }
.auth-cta { display: flex; flex-direction: column; gap: var(--space-2); }
.auth-step-title { margin-bottom: var(--space-2); font-size: 18px; font-weight: 700; }
.auth-checks { list-style: none; display: grid; gap: 8px; }
.auth-checks li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; }
.auth-checks li::before {
  content: ""; position: absolute; left: 3px; top: 0.35em;
  width: 13px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ----- welcome ----- */
.auth-welcome { padding-bottom: var(--space-4); }
.auth-hero { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); text-align: center; }
.auth-hero .page-header { margin: 0; }
.auth-hero .page-header-row { justify-content: center; }
.auth-hero .page-title { font-size: 28px; }


.auth-lang { border: 0; padding: 0; margin: 0; min-width: 0; }
.auth-lang > .label { text-align: center; margin-bottom: var(--space-2); color: var(--text-secondary); font-weight: 600; }
.auth-lang-options { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.auth-lang-btn {
  min-height: 52px; padding: 0 var(--space-4);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.auth-lang-btn:hover { border-color: var(--text-tertiary); }
.auth-lang-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.auth-values { list-style: none; display: grid; gap: var(--space-3); }
.auth-value { display: flex; align-items: flex-start; gap: var(--space-3); }
.auth-value-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--accent-tint); color: var(--accent-strong);
}
.auth-value-text { display: flex; flex-direction: column; min-width: 0; }
.auth-value-title { font-weight: 700; line-height: 1.3; }

.auth-promise-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.auth-promise-head .card-title { margin: 0; }
.auth-promise-icon { flex: none; display: inline-flex; color: var(--accent-strong); }
.auth-promise-text { font-weight: 600; }
.auth-promise-never { margin: var(--space-2) 0 var(--space-1); font-size: 14px; color: var(--text-secondary); }
.auth-promise .link { display: inline-flex; align-items: center; min-height: var(--tap); }

/* ----- login and the one-time-code form ----- */
.auth-card { padding: var(--space-5) var(--space-4); }
.auth-flow-body { display: flex; flex-direction: column; }
.auth-form { display: flex; flex-direction: column; }
.auth-name-grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--space-3); }
@media (min-width: 480px) {
  .auth-name-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.auth-channel { margin-bottom: var(--space-3); }
.auth-switch { margin-top: var(--space-2); width: 100%; }
.auth-invite-field { margin-bottom: var(--space-4); }
.auth-invite-field .field { margin: var(--space-2) 0 0; }
.auth-summary {
  display: flex; align-items: center; min-height: var(--tap);
  font-size: 14px; font-weight: 600; color: var(--accent-strong); cursor: pointer;
}
.auth-invite-field > summary::marker { color: var(--accent-strong); }
.auth-code-input {
  min-height: 60px;
  font-size: 28px; font-weight: 700; letter-spacing: 0.35em; text-align: center;
  font-variant-numeric: tabular-nums;
  padding-left: calc(14px + 0.35em);
}
.auth-flow-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.auth-flow-actions .btn { flex: 1 1 180px; }
.auth-demo-banner, .auth-demo-hint { flex-wrap: wrap; }
.auth-demo-banner { margin-bottom: var(--space-4); }
.auth-demo-banner .banner-body, .auth-demo-hint .banner-body { flex: 1 1 200px; }
.auth-demo-banner .banner-text { font-weight: 700; }
.auth-demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-2); }
.auth-demo-link { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--amber-ink); text-decoration: underline; text-underline-offset: 3px; }
.auth-demo-hint .link { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--amber-ink); }

/* ----- join and invite ----- */
.auth-invite-who { display: flex; align-items: center; gap: var(--space-4); }
.auth-invite-who-text { min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.auth-invite-who-text .auth-note { margin-top: 0; }
.auth-sees .card-title { margin-bottom: var(--space-2); }
.auth-accept .field { margin-top: var(--space-3); }
.auth-accept .btn { margin-top: var(--space-1); }
.auth-notice { margin: var(--space-3) 0 var(--space-2); }
.auth-wrong .auth-actions { margin-top: var(--space-4); }
.auth-invalid .empty { padding: var(--space-6) var(--space-2); }
.auth-invalid .empty-title { font-size: 18px; }
.auth-invalid .empty-text { margin: 0 auto; max-width: 42ch; }
.auth-invalid .empty-action { margin-top: var(--space-5); }

/* ----- privacy ----- */
.auth-privacy > .section { margin-top: 0; }
.auth-privacy-list { list-style: none; display: grid; gap: var(--space-3); }
.auth-privacy-list li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: 15px; line-height: 1.5; }
.auth-privacy-icon { flex: none; display: inline-flex; margin-top: 2px; }
.auth-stores .auth-privacy-icon { color: var(--accent); }
.auth-never-list .auth-privacy-icon { color: var(--danger); }
.auth-never .auth-note { color: var(--warning-text); }
.auth-see p { font-size: 15px; line-height: 1.5; }
.auth-see .auth-note { margin-top: var(--space-2); }
.auth-rights .auth-note { margin-top: var(--space-4); }
.auth-rights .auth-actions { margin-top: var(--space-4); justify-content: flex-start; }
.auth-privacy-mail { margin-top: var(--space-2); font-weight: 700; }
.auth-privacy .link { display: inline-flex; align-items: center; min-height: var(--tap); }
