/* The sign-in and registration page (account.html): a brand side and a compact card,
   the whole page fits the screen without scrolling on a laptop. */

main.container.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 470px);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 12px) 24px 24px;
}

/* ---------- the brand side ---------- */
.auth-aside { animation: fx-rise 0.6s var(--ease-out) backwards; }
.auth-kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--pill-bg); font-size: 13px; font-weight: 800; color: var(--color-muted);
  box-shadow: inset 0 0 0 1px var(--color-border);
}
.auth-kicker i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--color-price);
  box-shadow: 0 0 0 0 var(--color-price-glow); animation: w-ping 1.8s ease-out infinite;
}
.auth-aside h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.03; letter-spacing: -0.035em; margin: 18px 0 26px; }
.auth-aside h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ffb86b 0%, #ff7a3d 45%, #ff4f8b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth-perks li { display: flex; align-items: center; gap: 14px; animation: fx-rise 0.6s var(--ease-out) backwards; }
.auth-perks li:nth-child(2) { animation-delay: 0.08s; }
.auth-perks li:nth-child(3) { animation-delay: 0.16s; }
.auth-perks span {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 15px; font-size: 21px;
  background: var(--color-surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--color-border);
}
.auth-perks b { display: block; font-weight: 800; }
.auth-perks small { color: var(--color-muted); font-weight: 600; font-size: 14px; }
.auth-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.auth-stats div {
  padding: 12px 18px; border-radius: 18px; background: var(--pill-bg); box-shadow: inset 0 0 0 1px var(--color-border);
}
.auth-stats b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.auth-stats small { color: var(--color-muted); font-weight: 700; font-size: 12px; }

/* ---------- the card ---------- */
.auth-page .card.auth {
  padding: 26px 28px 24px; border-radius: 30px;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(255, 138, 76, 0.12), transparent 60%),
    var(--color-surface);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.65), inset 0 0 0 1px var(--color-border);
  animation: fx-rise 0.6s var(--ease-out) 0.08s backwards;
}
.auth-page .auth .seg { width: 100%; margin-bottom: 14px; }
.auth-page .auth .seg button { flex: 1; }
.auth-page .auth label { margin: 10px 0 5px; font-size: 0.9rem; }
.auth-page .auth label .meta { font-weight: 600; }
.auth-page .auth input[type="email"], .auth-page .auth input[type="password"], .auth-page .auth input[type="text"],
.auth-page .auth input[type="tel"], .auth-page .auth input[type="url"] { padding: 11px 16px; }
.auth-page .auth input[type="url"] {
  width: 100%; border: 1.5px solid var(--color-border); border-radius: 999px; background: var(--color-surface); color: var(--color-text); font: inherit;
}
.auth-page .auth .btn[type="submit"] { width: 100%; margin-top: 14px; }
.auth-page .auth .error { min-height: 0; margin: 6px 0 0; }
.auth-page .auth .error:empty { display: none; }
.auth-page .auth-or { margin: 14px 0 12px; }
.auth-page .auth-link { margin: 8px 4px 0; }
.auth-note { margin: 6px 4px 0; font-size: 0.85rem; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* who you are: three small cards */
.role-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 4px; }
.role-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 12px 10px;
  border: 1.5px solid var(--color-border); border-radius: 18px; background: var(--color-surface-2);
  color: var(--color-text); font: inherit; text-align: left; cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s var(--ease-out), background-color 0.2s ease;
}
.role-card svg { width: 22px; height: 22px; margin-bottom: 4px; fill: none; stroke: var(--color-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.role-card { min-width: 0; }
.role-card b { font-size: 14px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-card small { font-size: 12px; color: var(--color-muted); font-weight: 600; }
.role-card:hover { transform: translateY(-2px); border-color: var(--color-border-strong); }
.role-card[aria-pressed="true"] {
  border-color: var(--color-accent);
  background: radial-gradient(120% 120% at 0% 0%, rgba(255, 138, 76, 0.2), transparent 60%), var(--color-surface-2);
  box-shadow: 0 10px 24px -14px rgba(255, 107, 44, 0.9);
}

/* password rules as small chips in one row */
.auth-page .pw-meter { margin-top: 8px; }
.auth-page .pw-rules { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.auth-page .pw-rules li {
  padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 12px; background: var(--color-surface-2);
}
.auth-page .pw-rules li::before { width: 10px; height: 10px; }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  main.container.auth-page { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 22px; padding-bottom: 32px; }
  .auth-aside { text-align: left; }
  .auth-aside h1 { margin: 12px 0 0; font-size: clamp(28px, 7vw, 40px); }
  .auth-perks, .auth-stats { display: none; }      /* on a phone the form comes first, the pitch stays short */
  .auth-page .card.auth { max-width: 520px; width: 100%; justify-self: center; }
}
@media (max-width: 480px) {
  .auth-page .card.auth { padding: 20px 16px 18px; border-radius: 24px; }
  .auth-row { grid-template-columns: 1fr; gap: 0; }
  .role-card small { display: none; }
  .role-card { padding: 10px 8px 8px; }
  .role-card b { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-aside, .auth-perks li, .auth-page .card.auth, .auth-kicker i { animation: none !important; }
}
