/* Auth + landing profiles */

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 70% 45% at 15% -5%, rgba(61, 156, 240, 0.14), transparent),
    radial-gradient(ellipse 55% 40% at 85% 10%, rgba(167, 139, 250, 0.1), transparent),
    var(--bg);
}

.auth-card {
  width: min(420px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.25rem;
  box-shadow: var(--shadow);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.auth-brand h1 {
  margin: 0;
  font-size: 1.25rem;
}

.auth-brand p {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-label input {
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
}

.auth-label input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-submit {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 1rem;
}

.auth-footnote {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.auth-footnote a {
  color: var(--accent);
}

.auth-flash {
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.auth-flash-error {
  background: var(--red-soft);
  border: 1px solid rgba(240, 85, 85, 0.35);
  color: #ffb4b4;
}

.auth-flash-ok {
  background: var(--green-soft);
  border: 1px solid rgba(61, 214, 140, 0.35);
  color: #9af0c4;
}

.user-chip {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
}

.viewing-chip {
  color: var(--text);
  border-color: rgba(61, 156, 240, 0.45);
  background: var(--accent-soft);
}

.profile-card.is-active-view {
  outline: 2px solid rgba(61, 156, 240, 0.55);
  outline-offset: 1px;
}

.area-health {
  border-top: 3px solid #34d399;
}

.area-finances {
  border-top: 3px solid #f0a03d;
}

.area-card {
  min-height: 9rem;
}

.coming-soon-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
  max-width: 36rem;
}

.coming-soon-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.coming-soon-card p {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.profile-account-link {
  margin-top: 1.5rem;
  font-size: 0.88rem;
}

.profile-account-link a {
  color: var(--text-dim);
}

.profile-account-link a:hover {
  color: var(--accent);
}

/* Landing profiles */
.landing-main {
  max-width: 900px;
}

.landing-hero {
  margin: 0.5rem 0 1.25rem;
}

.landing-hero h2 {
  margin: 0 0 0.4rem;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.landing-lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 38rem;
  line-height: 1.55;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.profile-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.12s;
}

.profile-card:hover {
  transform: translateY(-2px);
  border-color: var(--border);
}

.profile-daniel {
  border-top: 3px solid var(--accent);
}

.profile-stephanie {
  border-top: 3px solid var(--purple);
}

.profile-avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  box-shadow: 0 0 18px rgba(61, 156, 240, 0.25);
}

.profile-stephanie .profile-avatar,
.profile-mark-stephanie,
.profile-hero-stephanie .profile-avatar {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.28);
}

.profile-avatar.large {
  width: 64px;
  height: 64px;
  font-size: 1.4rem;
  border-radius: 16px;
}

.profile-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.profile-body p {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.profile-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.profile-stephanie .profile-cta {
  color: var(--purple);
}

.landing-quick h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-link {
  text-decoration: none;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
}

.quick-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.profile-hero {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  margin-bottom: 1.25rem;
}

.profile-hero h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.profile-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

.profile-card-desc {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.user-chip {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
}

.viewing-chip {
  color: var(--text);
  border-color: rgba(61, 156, 240, 0.45);
  background: var(--accent-soft);
}

.profile-card.is-active-view {
  outline: 2px solid rgba(61, 156, 240, 0.55);
  outline-offset: 1px;
}

.area-health {
  border-top: 3px solid #34d399;
}

.area-finances {
  border-top: 3px solid #f0a03d;
}

.area-card {
  min-height: 9rem;
}

.coming-soon-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
  max-width: 36rem;
}

.coming-soon-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.coming-soon-card p {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.profile-account-link {
  margin-top: 1.5rem;
  font-size: 0.88rem;
}

.profile-account-link a {
  color: var(--text-dim);
}

.profile-account-link a:hover {
  color: var(--accent);
}

.auth-card-wide {
  width: min(440px, 100%);
}

.mfa-setup-box {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.9rem 0.85rem 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.mfa-scan-title {
  margin: 0 0 0.75rem;
  text-align: center;
  color: var(--text-muted);
}

.mfa-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 0.75rem;
  background: #fff;
  border-radius: 12px;
  margin: 0 auto;
  width: fit-content;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.mfa-qr {
  display: block;
  width: 220px;
  height: 220px;
  image-rendering: pixelated;
}

.mfa-secret {
  text-align: center;
  margin: 0.5rem 0 0.25rem;
}

.mfa-secret code {
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  word-break: break-all;
  user-select: all;
}

.break-all {
  word-break: break-all;
}

.auth-divider {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 0.5rem 0 1rem;
}
