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

.account-page button:disabled,
.account-page input:disabled,
.account-page select:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.account-main {
  padding-block: 42px 76px;
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr);
  align-items: center;
  gap: clamp(32px, 7vw, 90px);
  padding: 26px 0 52px;
}

.account-hero h1 {
  max-width: 780px;
  margin: 8px 0 20px;
  font-size: clamp(3.1rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.account-lead {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.account-moon-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(43, 33, 24, 0.1);
  border-radius: 50% 50% 32px 32px;
  background:
    radial-gradient(
      circle at 52% 42%,
      rgba(255, 255, 255, 0.86),
      transparent 8rem
    ),
    linear-gradient(145deg, var(--lavender-soft), var(--rose-soft));
  box-shadow: var(--shadow);
  isolation: isolate;
}

.account-moon-card::after {
  content: "";
  position: absolute;
  right: -35%;
  bottom: -55%;
  z-index: -1;
  width: 110%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.58);
}

.account-moon {
  position: absolute;
  top: 10px;
  left: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 8.5rem;
  line-height: 1;
  transform: translateX(-50%) rotate(-12deg);
  text-shadow: 0 16px 40px rgba(116, 78, 58, 0.14);
}

.account-star {
  position: absolute;
  color: var(--rose);
}

.account-star-one {
  top: 44px;
  right: 20%;
  font-size: 1.4rem;
}

.account-star-two {
  top: 96px;
  left: 19%;
  font-size: 1rem;
}

.account-moon-card p {
  position: absolute;
  right: 28px;
  bottom: 26px;
  left: 28px;
  margin: 0;
  color: var(--night);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.account-status {
  min-height: 56px;
  margin: 0 0 22px;
  border: 1px solid rgba(111, 95, 154, 0.2);
  border-radius: 18px;
  background: rgba(238, 232, 246, 0.64);
  color: #5f4d8b;
  padding: 14px 18px;
  font-size: 0.84rem;
  font-weight: 750;
}

.account-status:empty {
  display: none;
}

.account-status[data-tone="success"],
.account-inline-status[data-tone="success"] {
  border-color: rgba(55, 111, 86, 0.24);
  background: rgba(226, 241, 232, 0.76);
  color: #315f4b;
}

.account-status[data-tone="error"],
.account-inline-status[data-tone="error"] {
  border-color: rgba(154, 65, 57, 0.26);
  background: rgba(248, 229, 225, 0.82);
  color: #873a34;
}

.account-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.account-panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 252, 246, 0.78);
  box-shadow: 0 18px 54px rgba(68, 49, 35, 0.08);
  padding: clamp(24px, 4vw, 42px);
}

.account-panel h2,
.account-panel h3 {
  margin: 4px 0 12px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.account-panel h2 {
  font-size: clamp(2.35rem, 4vw, 3.5rem);
}

.account-panel h3 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.account-panel-copy {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-register-panel {
  background:
    radial-gradient(
      circle at 92% 0%,
      rgba(201, 189, 226, 0.36),
      transparent 15rem
    ),
    rgba(255, 252, 246, 0.82);
}

.account-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.account-form.compact {
  margin-top: 20px;
}

.account-form > .button {
  justify-self: start;
  min-width: 150px;
}

.account-field-help {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
}

.account-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 11px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.76rem;
  line-height: 1.55;
}

.account-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--night);
}

.account-consent a {
  font-weight: 800;
}

.account-details {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.account-details summary {
  color: var(--night);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
}

.account-recovery-panel {
  width: min(620px, 100%);
  margin-inline: auto;
}

.account-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.account-summary h2 {
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 4vw, 3rem);
}

.account-profiles-panel {
  min-height: 400px;
}

.account-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.account-section-heading > div {
  min-width: 0;
}

.account-inline-status {
  min-height: 22px;
  margin: 20px 0 0;
  border-radius: 13px;
  color: #5f4d8b;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 750;
}

.account-inline-status:not(:empty) {
  padding: 10px 12px;
}

.account-profile-empty {
  margin-top: 22px;
  border: 1px dashed rgba(43, 33, 24, 0.22);
  border-radius: 24px;
  background: rgba(238, 232, 246, 0.3);
  padding: 38px 24px;
  text-align: center;
}

.account-profile-empty > span {
  color: var(--rose);
  font-size: 1.7rem;
}

.account-profile-empty h3 {
  margin-block: 8px;
}

.account-profile-empty p {
  margin: 0;
  color: var(--muted);
}

.account-profile-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.account-profile-card {
  display: grid;
  align-content: start;
  gap: 17px;
  min-width: 0;
  border: 1px solid rgba(43, 33, 24, 0.13);
  border-radius: 24px;
  background: var(--cream-light);
  padding: 24px;
}

.account-profile-card[aria-busy="true"] {
  opacity: 0.66;
}

.account-profile-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-profile-heading h3 {
  overflow-wrap: anywhere;
  margin: 0 0 4px;
}

.account-profile-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--rose-soft);
  color: #744a44;
  font-family: var(--serif);
  font-size: 1.7rem;
  text-transform: uppercase;
}

.account-profile-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
}

.account-interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-interest-list li {
  max-width: 100%;
  overflow-wrap: anywhere;
  border-radius: 999px;
  background: var(--lavender-soft);
  color: #5f4d78;
  padding: 5px 10px;
  font-size: 0.7rem;
  font-weight: 750;
}

.account-interest-list li.is-placeholder {
  background: transparent;
  color: var(--muted);
  padding-left: 0;
  font-weight: 600;
}

.account-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
}

.account-small-button {
  min-height: 40px;
  padding: 8px 15px;
  font-size: 0.72rem;
}

.account-delete-button {
  border-color: rgba(141, 76, 69, 0.56);
  background: transparent;
  color: #7e423c;
}

.account-delete-button:hover {
  background: rgba(248, 229, 225, 0.72);
}

.account-profile-form {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.account-form-heading {
  align-items: start;
}

.account-text-button {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 800 0.78rem/1.3 var(--sans);
  padding: 5px 0;
}

.account-text-button:focus-visible,
.account-delete-button:focus-visible {
  outline: 2px solid rgba(182, 121, 112, 0.68);
  outline-offset: 3px;
}

.account-profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-block: 24px;
}

.account-full-field {
  grid-column: 1 / -1;
}

.account-page .app-footer {
  flex-wrap: wrap;
  padding-block: 24px;
}

.account-page .app-footer > p {
  max-width: 470px;
  text-align: center;
}

.account-page .app-footer .legal-footer-links {
  flex: 1 0 100%;
}

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

  .account-moon-card {
    display: none;
  }

  .account-auth-grid,
  .account-profile-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .account-main {
    padding-block: 25px 56px;
  }

  .account-hero {
    padding-bottom: 36px;
  }

  .account-hero h1 {
    font-size: clamp(3rem, 15vw, 4.35rem);
  }

  .account-panel {
    border-radius: 24px;
    padding: 24px 18px;
  }

  .account-summary,
  .account-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .account-summary .button,
  .account-section-heading .button,
  .account-form > .button,
  .account-profile-form > .button {
    width: 100%;
  }

  .account-form-heading {
    gap: 10px;
  }

  .account-form-heading .account-text-button {
    align-self: flex-start;
  }

  .account-profile-fields {
    grid-template-columns: 1fr;
  }

  .account-full-field {
    grid-column: auto;
  }
}
