/* Login, sign-up, reset, pending (views/auth.js) and the profile (views/profile.js). */

/* ---------------------------------------------------------------- auth */

.auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  padding: 16px max(var(--gutter), env(safe-area-inset-right)) 48px max(var(--gutter), env(safe-area-inset-left));
}
.auth-top {
  width: 100%; max-width: 440px;
  display: flex; justify-content: flex-end;
  margin-bottom: 12px;
}
.auth-card {
  width: 100%; max-width: 440px;
  padding: 28px 24px 24px;
}
@media (min-height: 760px) and (min-width: 600px) {
  .auth { padding-top: 7vh; }
}
@media (max-width: 479px) {
  .auth { padding: 8px 12px 32px; }
  .auth-top { margin-bottom: 8px; }
  .auth-card { padding: 24px 18px 20px; }
}
.auth-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.auth-name { font-size: 34px; line-height: 40px; }
.auth-lead { margin: 6px 0 22px; color: var(--ink-soft); }
.auth-form { display: grid; gap: 16px; }
.auth-heading { font-size: 22px; line-height: 28px; }
.auth-intro { color: var(--ink-soft); margin-top: -8px; }
.auth-alt {
  margin-top: 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 6px;
  color: var(--ink-soft);
}
.auth-alt a { font-weight: 800; display: inline-flex; align-items: center; min-height: 44px; }
.auth-note {
  margin-top: 8px;
  padding-top: 16px; border-top: 1px solid var(--hairline);
  color: var(--ink-soft); font-size: 14px; line-height: 20px; text-align: center;
}
.auth-message { display: grid; gap: 14px; }
.auth-message .ic { --ic-b: var(--mustard); color: var(--ink); }
.auth-actions { display: grid; gap: 8px; margin-top: 4px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.auth .loading-block { padding: 32px 0; }

/* ---------------------------------------------------------------- profile */

.profile { display: grid; gap: 16px; }
.profile-head { display: grid; gap: 4px; margin-bottom: 4px; }
.profile-section { display: grid; gap: 16px; }
.profile-section h2 { font-size: 20px; line-height: 25px; }
.profile-email {
  min-height: 48px; padding: 11px 14px;
  border-radius: var(--r-btn); background: var(--sunken);
  overflow-wrap: anywhere;
}
.profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 14px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.profile-lang .seg { align-self: start; }
@media (max-width: 479px) {
  .profile-actions .btn { flex: 1 1 auto; }
  .profile-lang .seg { width: 100%; }
}
