/* Account forms share the existing tokens, fields, cards and dialog. */
.auth-page {
  max-width: 620px;
  padding: 40px 24px;
  margin: auto;
}
.auth-page > .brand {
  margin-bottom: 34px;
}
.auth-page .page-heading {
  margin-bottom: 28px;
}
.auth-page .eyebrow {
  margin-bottom: 12px;
}
.auth-page h1 {
  font-size: 2rem;
}
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.account-grid > * {
  min-width: 0;
}
.account-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.account-editor h2 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
.account-editor > .alert {
  margin-bottom: 20px;
}
.account-form .input {
  width: 100%;
  min-width: 0;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.account-actions > .primary {
  flex: 1;
}
.account-flow-note {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.account-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: 0.9375rem;
}
.account-consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  flex-shrink: 0;
}
.auth-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 24px 0;
}
.auth-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand);
  font-size: 0.9375rem;
}
.auth-demo-entry {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--brand-soft);
  border-radius: var(--radius);
}
.auth-demo-entry h2 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
.auth-demo-entry p {
  font-size: 0.9375rem;
  color: var(--muted);
}
.account-state {
  padding: 20px 0;
  text-align: center;
}
.account-state h2 {
  margin: 20px 0 14px;
}
.account-state > p {
  line-height: 1.7;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.account-state > .button {
  margin-top: 24px;
}
.account-symbol {
  display: inline-flex;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  align-items: center;
  justify-content: center;
}
.account-symbol .icon {
  width: 28px;
  height: 28px;
}
.account-tools {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 28px;
  background: #f0f5f4;
}
.account-tools summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  min-height: 48px;
  cursor: pointer;
  font-size: 0.875rem;
  list-style: none;
}
.account-tools summary::-webkit-details-marker {
  display: none;
}
.account-tools summary > .icon:last-child {
  margin-left: auto;
}
.account-tools-body {
  padding: 4px 18px 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}
.account-tools-body > .helper {
  grid-column: 1/-1;
}
.account-tools-body .select {
  width: 100%;
  min-width: 0;
}
.account-profile {
  background: #edf5f2;
  overflow-wrap: anywhere;
}
.account-profile > .avatar {
  width: 52px;
  height: 52px;
  margin: 24px 0 16px;
}
.account-profile h2 {
  font-size: 1.5rem;
}
.account-profile dl {
  margin: 20px 0;
}
.account-profile dl > div {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.account-profile dt {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.account-profile dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.account-profile > .helper {
  margin-top: 20px;
}
.account-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.account-diff > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.account-diff h3 {
  grid-column: 1/-1;
  font-size: 1rem;
}
.account-diff p {
  overflow-wrap: anywhere;
  padding: 16px;
  background: var(--canvas);
  border-radius: 10px;
}
.account-diff p:last-child {
  background: var(--brand-soft);
}
.account-diff small {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}
.preview-console {
  margin-top: 32px;
}
.preview-console > p {
  margin: 12px 0 24px;
  color: var(--muted);
}
.preview-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}
.preview-controls .select {
  width: 100%;
  min-width: 0;
}
.preview-console .account-actions {
  align-items: center;
}
.preview-pending {
  margin: 24px 0;
  padding-block: 24px;
  border-block: 1px solid var(--line);
}
.preview-pending h3 {
  margin-bottom: 12px;
}
.preview-pending p {
  color: var(--muted);
  line-height: 1.7;
}
.preview-sequence {
  line-height: 1.8;
  margin-top: 20px;
  padding-left: 20px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .account-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .account-profile {
    grid-row: 1;
  }
  .preview-controls {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .auth-page {
    padding: 28px 16px;
  }
  .auth-page h1 {
    font-size: 1.65rem;
  }
  .auth-demo-entry {
    padding: 20px;
  }
  .account-actions {
    flex-direction: column;
  }
  .account-tools-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .account-diff > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .account-tabs .button {
    flex: 1;
  }
}
