.auth-page-shell {
  display: grid;
  min-height: 560px;
  place-items: center;
  padding-top: 48px;
  padding-bottom: 72px;
}

.login-card {
  display: grid;
  gap: 13px;
  width: min(100%, 430px);
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.16), transparent 48%),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 24px;
}

.login-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.auth-logo {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(34, 211, 238, 0.18));
  color: #bfdbfe;
  overflow: hidden;
}

.auth-logo img {
  display: block;
  width: 30px;
  height: 30px;
  max-width: 30px;
  max-height: 30px;
  object-fit: contain;
}

.login-submit {
  justify-content: center;
  width: 100%;
}

.discord-pill,
.ghost-button,
.primary-button,
.secondary-button {
  cursor: pointer;
}

.discord-pill svg,
.ghost-button svg,
.primary-button svg,
.secondary-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.account-page {
  display: grid;
  gap: 22px;
  min-height: 70vh;
}

.account-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.account-hero h1 {
  margin: 0;
}

.account-hero p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

.dashboard-summary-grid,
.account-dashboard-grid {
  display: grid;
  gap: 16px;
}

.dashboard-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-card,
.dashboard-list-card {
  min-width: 0;
}

.dashboard-summary-card,
.dashboard-list-card {
  display: grid;
  gap: 8px;
}

.dashboard-summary-card span,
.dashboard-summary-card em,
.dashboard-list li em {
  color: var(--muted);
}

.dashboard-summary-card strong {
  font-size: 22px;
}

.dashboard-summary-card em,
.dashboard-list li em {
  font-style: normal;
  font-size: 13px;
}

.dashboard-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.dashboard-list li span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.dashboard-list .dashboard-empty {
  display: block;
  color: var(--muted);
}

.dashboard-upgrade-cta {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.12);
}

.dashboard-upgrade-cta p {
  margin: 0;
  color: var(--muted);
}

.dashboard-upgrade-cta .primary-button {
  width: fit-content;
}

.account-detail-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.account-detail-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.account-detail-list dt {
  color: var(--muted);
  font-weight: 700;
}

.account-detail-list dd {
  margin: 0;
  font-weight: 800;
}

.form-message {
  min-height: 22px;
  color: var(--muted);
}

.form-message[data-type="success"] {
  color: #22c55e;
}

.form-message[data-type="error"] {
  color: #ef4444;
}

@media (max-width: 900px) {
  .dashboard-summary-grid,
  .account-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .account-hero {
    align-items: stretch;
    flex-direction: column;
  }
}
