:root {
  --account-ink: #17212b;
  --account-muted: #5c6977;
  --account-line: #dfe5e8;
  --account-surface: #ffffff;
  --account-soft: #f5f8f7;
  --account-brand: #126b51;
  --account-brand-dark: #0b513d;
  --account-accent: #dff5ec;
  --account-danger: #a1202b;
}
[hidden] {
  display: none !important;
}


body[data-account-page] {
  min-height: 100vh;
  margin: 0;
  color: var(--account-ink);
  background: radial-gradient(circle at 15% 0, #e7f7f0 0, transparent 35rem), var(--account-soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.account-skip {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 20;
  padding: .75rem 1rem;
  border-radius: .5rem;
  color: #fff;
  background: var(--account-brand-dark);
  transform: translateY(-180%);
}

.account-skip:focus { transform: translateY(0); }

.account-header {
  border-bottom: 1px solid rgba(23, 33, 43, .1);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
}

.account-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 2rem));
  min-height: 4.5rem;
  margin: 0 auto;
}

.account-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--account-ink);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.account-brand__mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .65rem;
  color: #fff;
  background: var(--account-brand);
}

.account-nav { display: flex; gap: 1.25rem; }
.account-nav a, .account-footer a, .account-switch a, .account-legal a { color: var(--account-brand-dark); }
.account-nav a { font-size: .92rem; font-weight: 650; text-decoration: none; }

.account-shell {
  width: min(1040px, calc(100% - 2rem));
  min-height: calc(100vh - 11rem);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.account-card, .account-dashboard {
  border: 1px solid var(--account-line);
  border-radius: 1.25rem;
  background: var(--account-surface);
  box-shadow: 0 18px 55px rgba(28, 48, 42, .08);
}

.account-card { padding: clamp(1.35rem, 4vw, 2rem); }
.account-card--form { width: min(100% - 2rem, 31rem); margin: 0 auto; }
.account-card--accent { border-color: #9fd6c3; background: linear-gradient(145deg, #fff, var(--account-accent)); }
.account-card h1, .account-dashboard h1 { margin: .2rem 0 .75rem; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; }
.account-card h2 { margin: .25rem 0 .75rem; font-size: 1.35rem; }
.account-card h2 span { color: var(--account-muted); font-size: .9rem; font-weight: 550; }
.account-eyebrow, .account-card__label { margin: 0 0 .5rem; color: var(--account-brand); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.account-lead { margin: 0 0 1.75rem; color: var(--account-muted); line-height: 1.6; }

.account-form { display: grid; gap: .65rem; }
.account-form label { margin-top: .45rem; font-size: .9rem; font-weight: 750; }
.account-form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 3rem;
  padding: .7rem .8rem;
  border: 1px solid #bcc8cd;
  border-radius: .65rem;
  color: var(--account-ink);
  background: #fff;
  font: inherit;
}
.account-form input:focus { outline: 3px solid rgba(18, 107, 81, .2); border-color: var(--account-brand); }
.account-help, .account-legal, .account-secure-note { color: var(--account-muted); font-size: .8rem; line-height: 1.55; }
.account-help { margin: -.15rem 0 .5rem; }

.account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 2.9rem;
  margin-top: .5rem;
  padding: .7rem 1rem;
  border: 1px solid var(--account-brand);
  border-radius: .7rem;
  color: #fff;
  background: var(--account-brand);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.account-button:hover { background: var(--account-brand-dark); }
.account-button:focus-visible { outline: 3px solid rgba(18, 107, 81, .25); outline-offset: 2px; }
.account-button:disabled { border-color: #9da9ae; background: #9da9ae; cursor: not-allowed; }
.account-button--secondary { color: var(--account-brand-dark); background: #fff; }
.account-button--secondary:hover { color: #fff; }
.account-switch { margin: 1.25rem 0 0; text-align: center; }
.account-legal { margin: 1.25rem 0 0; text-align: center; }

.account-status:empty { display: none; }
.account-alert {
  margin: 1rem 0;
  padding: .85rem 1rem;
  border: 1px solid #9fd6c3;
  border-radius: .7rem;
  color: #164e3e;
  background: #edf9f5;
  line-height: 1.5;
}
.account-alert--error { border-color: #e5b1b6; color: var(--account-danger); background: #fff2f3; }

.account-dashboard { padding: clamp(1.4rem, 4vw, 2.5rem); }
.account-dashboard__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.account-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.account-card p { color: var(--account-muted); line-height: 1.55; }
.account-card .account-button { width: 100%; }
.account-footer { padding: 1.5rem 1rem 2rem; color: var(--account-muted); font-size: .82rem; text-align: center; }

@media (max-width: 760px) {
  .account-nav a:not(:last-child) { display: none; }
  .account-grid { grid-template-columns: 1fr; }
  .account-dashboard__heading { display: block; }
  .account-dashboard__heading > .account-button { width: 100%; margin-bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
