/* The house ledger - V1 shell-page wrapper plus The Call's auth forms. */

body.account-body {
  --shell-width: 34rem;
}

body.legal-body {
  --shell-width: 40rem;
}

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

.account-intro {
  text-align: center;
}

.account-card {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.account-field {
  margin-bottom: 0.9rem;
}

.account-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--fg-secondary);
  font-size: 0.85rem;
}

.account-optional {
  color: var(--muted);
  font-weight: 400;
}

.account-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.62rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font: inherit;
}

.account-field input:focus-visible {
  border-color: var(--accent-2);
}

.account-hint {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.account-terms {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
  color: var(--fg-secondary);
  font-size: 0.85rem;
  line-height: 1.45;
}

.account-terms input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.account-terms a {
  color: inherit;
}

.account-error {
  margin: 0 0 0.9rem;
  color: #ffd4cb;
  font-size: 0.85rem;
  line-height: 1.4;
}

.account-submit {
  width: 100%;
}

.account-links {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}

.account-links--footer {
  margin-top: 1.2rem;
}

.account-link {
  border: none;
  padding: 0;
  background: none;
  color: var(--fg-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-link:hover,
.account-link:focus-visible {
  color: var(--fg);
}

.account-link--danger {
  color: var(--muted);
}

.account-link--danger:hover,
.account-link--danger:focus-visible {
  color: #ffd4cb;
}

.account-status {
  margin: 0 0 0.6rem;
  line-height: 1.5;
}

.account-substatus {
  margin: 0 0 0.9rem;
  color: var(--fg-secondary);
  font-size: 0.85rem;
  line-height: 1.45;
}

.account-pending {
  margin: 0 0 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 0.85rem;
  background: rgba(255, 255, 255, 0.025);
}

.account-pending .shell-note {
  margin-bottom: 0.65rem;
}

.account-pending-actions,
.account-email-form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.account-email-form {
  margin: 0 0 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.025);
}

.account-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.account-devices {
  margin-top: 1.2rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.account-devices h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.account-device-list {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
}

.account-device {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.025);
}

.account-device p {
  margin: 0;
}

.account-device small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
}

.account-footer {
  text-align: center;
}

.account-footer a {
  color: var(--accent-2);
}

.legal-body .shell-version {
  margin: 0 0 0.75rem;
  text-align: center;
}

.legal-body .shell-lede {
  margin-bottom: 1.1rem;
  text-align: center;
}

.shell-prose h2 {
  margin: 1.25rem 0 0.45rem;
}

.shell-prose h2:first-of-type {
  margin-top: 0;
}

.shell-prose ul {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
  color: var(--fg-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.shell-prose li + li {
  margin-top: 0.45rem;
}
