/* v151 — make account creation visibly progressive and continue directly into onboarding. */

.account-form-status {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid #dbe4f3;
  border-radius: 13px;
  background: #f7f9fd;
  color: #526078;
}

.account-form-status[hidden] {
  display: none !important;
}

.account-form-status > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #e8efff;
  color: #2d61d5;
  font-size: 13px;
  font-weight: 950;
}

.account-form-status p {
  margin: 0;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.55;
}

.account-form-status[data-tone="good"] {
  border-color: #bee7d1;
  background: #f0fbf5;
  color: #20734b;
}

.account-form-status[data-tone="good"] > span {
  background: #d9f4e5;
  color: #15814f;
}

.account-form-status[data-tone="warn"] {
  border-color: #f2c8c5;
  background: #fff5f4;
  color: #a33b34;
}

.account-form-status[data-tone="warn"] > span {
  background: #ffe3e0;
  color: #c8443d;
}

#accountSubmitBtn {
  min-width: 250px;
}

#accountSubmitBtn > i {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.46);
  border-top-color: #fff;
  border-radius: 50%;
}

#accountSubmitBtn.is-loading > i {
  display: inline-block;
  animation: account-submit-spin 720ms linear infinite;
}

#accountSubmitBtn.is-loading {
  cursor: progress;
  opacity: 0.92;
}

@keyframes account-submit-spin {
  to { transform: rotate(360deg); }
}

html[data-theme="dark"] .account-form-status {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(30, 38, 54, 0.92);
  color: #b8c2d5;
}

html[data-theme="dark"] .account-form-status[data-tone="good"] {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(16, 94, 65, 0.24);
  color: #a7f3d0;
}

html[data-theme="dark"] .account-form-status[data-tone="warn"] {
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(127, 29, 29, 0.24);
  color: #fecaca;
}

@media (max-width: 720px) {
  #accountSubmitBtn {
    width: 100%;
    min-width: 0;
  }
}
