.account-page {
  background: var(--paper-soft);
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 34rem);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: end;
  padding: clamp(4rem, 8vw, 7rem) var(--gutter) clamp(2.5rem, 5vw, 4.5rem);
  color: #fff;
  background: radial-gradient(circle at 83% 12%, rgba(214, 175, 58, 0.22), transparent 27rem), #07100c;
}

.account-hero h1 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.25rem, 7.8vw, 8.5rem);
  font-weight: 650;
  line-height: 0.86;
  letter-spacing: -0.055em;
}

.account-hero > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 1.45vw, 1.25rem);
}

.account-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.8rem;
}

.account-section-heading h1,
.account-section-heading h2 {
  max-width: 18ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.25rem, 4.5vw, 4.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.account-section-heading > p {
  max-width: 33rem;
  color: var(--muted);
}

.account-form {
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  background: #fff;
  border: 1px solid rgba(6, 61, 45, 0.13);
  border-radius: 1.3rem;
  box-shadow: 0 1.6rem 4.5rem rgba(14, 34, 25, 0.07);
}

.account-form__group {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.account-form__group + .account-form__group {
  padding-top: 1.4rem;
  border-top: 1px solid rgba(6, 61, 45, 0.12);
}

.account-form__group legend {
  margin-bottom: 0.8rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.account-form__wide {
  grid-column: 1 / -1;
}

.account-form__submit {
  justify-self: start;
  min-width: min(100%, 18rem);
}

.field label small {
  color: var(--muted);
  font-weight: 500;
}

.role-picker {
  position: relative;
  align-self: end;
}

.role-picker summary {
  display: flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  border: 1px solid rgba(6, 61, 45, 0.24);
  border-radius: 0.75rem;
  font-weight: 750;
  list-style: none;
}

.role-picker summary::-webkit-details-marker {
  display: none;
}

.role-picker summary::after {
  content: "+";
  color: var(--green);
  font-size: 1.25rem;
}

.role-picker[open] summary::after {
  content: "−";
}

.role-picker summary span {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 550;
}

.role-picker__choices {
  display: grid;
  gap: 0.55rem;
  padding: 0.8rem 0.2rem 0;
}

.role-picker__choices label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.65rem;
  background: rgba(6, 61, 45, 0.055);
}

.role-picker__choices input,
.membership-choice input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--green);
}

.membership-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.15rem;
  color: #11130f;
  background: var(--gold-metal);
  background-position: var(--gold-position) center;
  background-size: 250% 100%;
  border-radius: 0.9rem;
  box-shadow: 0 1.1rem 3rem rgba(181, 137, 20, 0.15);
}

.membership-choice span {
  display: grid;
  gap: 0.22rem;
}

.membership-choice small {
  opacity: 0.7;
}

.field-hint {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.account-access {
  display: grid;
  place-items: center;
}

.account-auth-card {
  display: grid;
  width: min(100%, 42rem);
  gap: 1.25rem;
  padding: clamp(1.35rem, 4vw, 2.5rem);
  background: #fff;
  border: 1px solid rgba(6, 61, 45, 0.14);
  border-radius: 1.3rem;
  box-shadow: 0 1.6rem 4.5rem rgba(14, 34, 25, 0.08);
}

.account-auth-card__heading {
  display: grid;
  gap: 0.4rem;
}

.account-auth-card__heading h1,
.account-auth-card__heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.account-auth-card__heading p:last-child {
  max-width: 35rem;
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.account-login-form {
  display: grid;
  gap: 1rem;
}

.account-auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
  font-size: 0.82rem;
}

.account-auth-options a,
.account-auth-back {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.account-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-weight: 700;
}

.account-remember input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--green);
}

.account-auth-submit,
.account-create-launch {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.account-create-launch {
  min-height: 3.35rem;
}

.account-auth-back {
  justify-self: start;
  margin-top: 1rem;
  font-size: 0.84rem;
}

.account-login {
  display: grid;
  grid-template-columns: minmax(15rem, 0.75fr) minmax(18rem, 1.25fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  background: rgba(6, 61, 45, 0.06);
}

.account-login form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: end;
}

.account-login .cf-turnstile {
  grid-column: 1 / -1;
}

.profile-dashboard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.profile-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.profile-card {
  display: flex;
  min-height: 15rem;
  flex-direction: column;
  padding: 1.2rem;
  border: 1px solid rgba(6, 61, 45, 0.13);
  border-radius: 1rem;
  background: #fff;
}

.profile-card--gold {
  color: #11130f;
  background: var(--gold-metal);
  background-position: var(--gold-position) center;
  background-size: 250% 100%;
}

.profile-card h3 {
  margin: 0.2rem 0 0.7rem;
  font-family: var(--display);
  font-size: 2rem;
}

.profile-card p {
  color: inherit;
  opacity: 0.72;
}

.profile-card a {
  margin-top: auto;
  color: inherit;
  font-weight: 800;
}

.profile-xp {
  height: 0.55rem;
  overflow: hidden;
  margin: 0.2rem 0 0.65rem;
  background: rgba(6, 61, 45, 0.13);
  border-radius: 999px;
}

.profile-xp span {
  display: block;
  width: var(--profile-xp, 0%);
  height: 100%;
  background: var(--green);
}

.profile-booking-list {
  display: grid;
  gap: 0.65rem;
}

.profile-booking-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid rgba(6, 61, 45, 0.12);
  border-radius: 0.85rem;
}

.profile-booking-list span,
.profile-booking-list p {
  color: var(--muted);
  font-size: 0.8rem;
}

.profile-booking-list h3,
.profile-booking-list p {
  margin: 0.15rem 0 0;
}

.profile-booking-list > article > strong {
  padding: 0.35rem 0.55rem;
  color: var(--green);
  background: rgba(6, 61, 45, 0.08);
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.profile-empty {
  padding: 1.2rem;
  border: 1px dashed rgba(6, 61, 45, 0.28);
  border-radius: 0.9rem;
}

@media (max-width: 1020px) {
  .profile-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .account-hero h1 {
    font-size: clamp(3.2rem, 17vw, 5.8rem);
  }

  .account-section-heading {
    display: grid;
    align-items: start;
  }

  .account-form__grid,
  .profile-cards {
    grid-template-columns: 1fr;
  }

  .account-form__wide {
    grid-column: auto;
  }

  .profile-card {
    min-height: 12rem;
  }

  .profile-booking-list article {
    align-items: flex-start;
  }

  .account-auth-options {
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .account-hero {
    gap: 1.2rem;
    padding-top: 3rem;
  }

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

  .account-auth-card {
    padding: 1.1rem;
    border-radius: 1rem;
  }

  .account-auth-options {
    display: grid;
  }

  .account-create-launch {
    line-height: 1.25;
  }
}
