/* Account pages. Uses the site's own colors and type; nothing new. */
.account-page h1 { margin-bottom: 8px; }
.account-page [hidden] { display: none; }

/* A sign-in page is read at once: the lead and status are never faded or slid in. */
.account-page .scroll-animate { opacity: 1 !important; transform: none !important; }

.account-who { margin: 0 0 20px; color: var(--muted); }
.account-who .btn { min-height: 44px; margin-left: 8px; padding: 8px 16px; }

.account-licence {
  margin: 0 0 24px;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.account-page .account-licence h2 { margin: 0 0 12px; font-size: 22px; }
.account-licence h2:focus { outline: none; }
.account-page .account-licence h3 { margin: 20px 0 8px; font-size: 16px; }

.account-licence dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.account-licence dt { color: var(--muted); }
.account-licence dd { margin: 0; overflow-wrap: anywhere; }
.account-licence code { font: 15px/1.5 var(--mono); }

.account-key-buttons, .account-key-slot { display: flex; flex-wrap: wrap; gap: 12px; }
.account-key-slot:empty { display: none; }
.account-key-buttons { margin-top: 10px; }
.account-key .btn { min-height: 44px; padding: 8px 16px; }
.account-key-field {
  flex: 1 1 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface2);
  color: var(--text);
  font: 15px/1.5 var(--mono);
}

.account-macs { list-style: none; margin: 0; padding: 0; }
.account-macs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.account-macs li:first-child { border-top: 0; }
.account-macs .btn { min-height: 44px; padding: 8px 16px; flex: none; }
.account-meta { color: var(--muted); font-size: 14px; }

.account-billing { margin-top: 4px; }
.account-page .account-billing h4 { margin: 16px 0 6px; font-size: 15px; }
.account-billing p { margin: 0 0 8px; }
.account-invoices { list-style: none; margin: 0; padding: 0; }
.account-invoices li { padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.account-invoices li:first-child { border-top: 0; }
.account-invoices a { color: var(--accent); }
.account-billing-field:empty { display: none; }
.account-card-element {
  min-height: 44px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface2);
  color: var(--text);
  font: 16px/1.5 var(--sans);
  cursor: text;
}
/* Stripe puts these classes on this box; its own frame cannot read this stylesheet (see card-style.js). Same look as every site input. */
.account-card-element.StripeElement--focus { outline: 3px solid var(--accent); outline-offset: 3px; }
.account-card-element.StripeElement--invalid { border-color: var(--warn); }

/* A button waiting for the server (busy.js): the buy button's look from home-07.css, which this page does not load. */
.btn.is-busy { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--blue); color: #fff; transform: none; }
.btn.is-busy:disabled { cursor: progress; opacity: 1; }
.btn-spinner { flex: none; width: 16px; height: 16px; border: 2px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: btn-spin .8s linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn-spinner { animation: none; border-color: #fff; border-right-color: #ffffff55; border-bottom-color: #ffffff55; } }

.account-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.account-note { margin: 16px 0; color: var(--muted); }
.account-msg .account-note { margin: 12px 0 0; }   /* an action's message, under its group of controls (messages.js) */
div.account-note { padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }

.account-banner {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--accent);
  border-left-width: 6px;
  border-radius: 8px;
  background: var(--surface2);
}

#account-status { min-height: 1.5em; margin: 12px 0 20px; }
#continue-action { margin: 20px 0; }

.account-dialog {
  max-width: min(480px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}
.account-dialog::backdrop { background: rgba(15, 18, 20, .8); }
.account-dialog h2 { margin: 0 0 10px; font-size: 20px; }

.signin-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.contact-form .signin-actions .btn { margin-top: 0; }

@media (max-width: 640px) {
  .signin-actions .btn { width: 100%; }
  .account-licence { padding: 18px 16px 14px; }
  .account-licence dl { grid-template-columns: 1fr; gap: 0; }
  .account-licence dd { margin-bottom: 8px; }
  .account-macs li { align-items: flex-start; flex-wrap: wrap; }
  .account-actions .btn, .account-key .btn { width: 100%; }
}
