/* Login / register page */
.auth-layout {
  min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: 56px clamp(32px, 6vw, 88px);
  color: #fffdf8;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 90, 54, .35), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(22, 121, 107, .35), transparent 60%),
    #26221e;
}
.hero .brand img { width: 52px; height: 52px; border-radius: 14px; }
.hero .brand-name { font-size: 26px; }
.hero h1 { font-size: clamp(34px, 4.2vw, 54px); font-weight: 800; max-width: 13ch; letter-spacing: -0.025em; }
.hero-sub { margin: 0; font-size: 18px; color: rgba(255, 253, 248, .78); max-width: 34ch; }
.hero-foot { margin: 0; font-size: 14px; color: rgba(255, 253, 248, .6); font-weight: 600; }

.demo { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; max-width: 480px; }
.demo-card {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: start; gap: 12px;
  padding: 14px 16px; background: var(--surface); color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.demo-card.nagging { transform: rotate(-1.2deg); }
.demo-card strong { font-weight: 700; }
.demo-body { display: grid; gap: 2px; min-width: 0; }
.demo-meta { font-size: 13px; color: var(--muted); }
.demo-meta.overdue { color: var(--overdue); font-weight: 600; }
.demo-quote {
  margin-top: 6px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--field);
  font-style: italic; font-size: 13px; color: var(--ink-2);
}
.demo-mark { display: grid; place-items: center; width: 24px; height: 24px; color: var(--overdue); font-weight: 800; font-size: 18px; }
.demo-check { width: 22px; height: 22px; border-radius: 7px; background: var(--field); margin-top: 1px; }

.form-side { position: relative; z-index: 1; display: grid; place-items: center; padding: 40px 24px; }
.form-card { width: 100%; max-width: 440px; padding: 24px; display: grid; gap: 22px; }
.auth-form { display: grid; gap: 18px; }
.form-head { display: grid; gap: 4px; }
.form-head h2 { font-size: 26px; font-weight: 800; }
.form-head .hint { margin: 0; font-size: 15px; }
.fine-print { margin: 0; display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }
.fine-print .icon-sm { color: var(--accent-text); }

.form-link { margin: -8px 0 0; text-align: right; }
.form-link.center { margin: 0; text-align: center; }
.link-btn {
  border: 0; background: none; padding: 4px 2px; cursor: pointer;
  color: var(--accent-text); font-weight: 700; font-size: 14px;
}
.link-btn:hover { text-decoration: underline; }

/* Single-card pages: /verify and /reset */
.solo { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.solo-card { width: 100%; max-width: 440px; padding: 28px 24px; display: grid; gap: 18px; }
.solo-card .brand img { width: 40px; height: 40px; }
.solo-card h1 { font-size: 26px; font-weight: 800; }
.solo-card p { margin: 0; color: var(--ink-2); }
.solo-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--teal-soft); color: var(--teal); }
.solo-icon.bad { background: var(--overdue-soft); color: var(--overdue); }
.solo-icon .icon { width: 28px; height: 28px; }
.solo-card > div { display: grid; gap: 12px; justify-items: start; }
.solo-actions { display: grid; gap: 10px; width: 100%; margin-top: 6px; }
.spinner { width: 28px; height: 28px; border-radius: 99px; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Mobile: form first, compact dark header, no demo cards. */
@media (max-width: 860px) {
  .auth-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .hero { padding: 22px 20px 26px; gap: 10px; justify-content: flex-start; }
  .hero .brand img { width: 40px; height: 40px; border-radius: 11px; }
  .hero .brand-name { font-size: 21px; }
  .hero h1 { font-size: 26px; max-width: none; }
  .hero-sub { font-size: 15px; }
  .demo, .hero-foot { display: none; }
  .form-side { place-items: start center; padding: 0 16px 32px; margin-top: -12px; }
  .form-card { padding: 18px; }
}

/* Links to the privacy policy and terms */
.legal-note { display: block; margin-top: -6px; text-align: center; }
.legal-note a, .auth-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.auth-legal { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
