.account-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 12%, rgb(23 183 200 / 12%), transparent 18rem),
    linear-gradient(180deg, #f8fbfc, #fff 42%, #eef8fb);
  padding: clamp(2.5rem, 6vw, 5.5rem) 0;
}

.account-page::before {
  position: absolute;
  right: -9rem;
  bottom: -16rem;
  width: min(42rem, 72vw);
  aspect-ratio: 1;
  border: 4.5rem solid rgb(6 38 79 / 7%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.account-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(20rem, 0.72fr);
  width: min(72rem, calc(100% - 2rem));
  gap: clamp(1rem, 4vw, 3rem);
  margin: 0 auto;
}

.account-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgb(12 47 83 / 8%);
}

.account-copy {
  display: grid;
  align-content: center;
  min-height: 31rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 78% 20%, rgb(25 201 120 / 15%), transparent 12rem),
    linear-gradient(135deg, #06264f, #0a4773 60%, #0b838c);
  color: #fff;
}

.account-copy .kicker {
  color: #8ff8d1;
}

.account-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.account-copy p {
  max-width: 33rem;
  margin: 1rem 0 0;
  color: rgb(255 255 255 / 82%);
  line-height: 1.6;
}

.account-copy ul {
  display: grid;
  gap: 0.65rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.account-copy li {
  position: relative;
  padding-left: 1.5rem;
  color: rgb(255 255 255 / 90%);
  font-weight: 800;
}

.account-copy li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
}

.account-form {
  display: grid;
  gap: 1rem;
  align-content: center;
  padding: clamp(1.1rem, 3vw, 2rem);
}

.account-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 850;
}

.account-form input {
  width: 100%;
  min-height: 3.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  background: #f8fbfc;
  padding: 0 1rem;
  color: var(--ink);
}

.account-form input:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgb(23 183 200 / 16%);
}

.account-submit {
  width: 100%;
  margin-top: 0.35rem;
}

.account-switch {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.account-switch a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
}

.account-alert {
  border-left: 0.24rem solid #ff6a42;
  background: #fff6f2;
  padding: 0.75rem 0.85rem;
  color: #8b2b16;
}

.account-alert p {
  margin: 0;
}

@media (max-width: 780px) {
  .account-shell {
    grid-template-columns: 1fr;
    width: calc(100% - 1rem);
  }

  .account-copy {
    min-height: auto;
  }
}

/* Fallback for native Nuvemshop account markup if account templates are not used. */
main > h1:first-child {
  width: min(72rem, calc(100% - 2rem));
  margin: clamp(2rem, 5vw, 4rem) auto 1rem;
  color: var(--navy);
  font-size: clamp(2.1rem, 4.8vw, 4rem);
  line-height: 1;
}

main > h1:first-child ~ p,
main > h1:first-child ~ form,
main > h1:first-child ~ .breadcrumb,
main > h1:first-child ~ nav {
  width: min(72rem, calc(100% - 2rem));
  margin-right: auto;
  margin-left: auto;
}

main > h1:first-child ~ form {
  display: grid;
  max-width: 34rem;
  gap: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: clamp(1.1rem, 3vw, 2rem);
  box-shadow: 0 18px 50px rgb(12 47 83 / 8%);
}

main > h1:first-child ~ form label {
  display: grid;
  gap: 0.35rem;
  color: var(--navy);
  font-weight: 850;
}

main > h1:first-child ~ form input {
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbfc;
  padding: 0 1rem;
}

main > h1:first-child ~ form button,
main > h1:first-child ~ form input[type="submit"] {
  min-height: 3.05rem;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  padding: 0.82rem 1.35rem;
  color: var(--navy);
  cursor: pointer;
  font-weight: 850;
}

main > h1:first-child ~ img,
main > h1:first-child ~ picture img {
  max-width: 14rem !important;
  height: auto !important;
}

/* Premium account pages inspired by the HeroBand reference */
.account-page {
  position: relative !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 78% 15%, rgb(64 220 211 / 18%), transparent 19rem),
    radial-gradient(circle at 8% 75%, rgb(6 38 79 / 9%), transparent 20rem),
    linear-gradient(135deg, #f7fdff, #edf8fb 48%, #ffffff) !important;
  padding: clamp(2.6rem, 6vw, 5.8rem) 0 !important;
}

.account-page::before {
  right: -12rem !important;
  bottom: -18rem !important;
  width: min(48rem, 78vw) !important;
  border-width: 5rem !important;
  border-color: rgb(6 38 79 / 5%) !important;
}

.account-page::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 46%, rgb(255 255 255 / 42%) 46.2% 47.1%, transparent 47.3%),
    linear-gradient(135deg, transparent 0 63%, rgb(18 184 188 / 9%) 63.2% 64%, transparent 64.2%);
  content: "";
  pointer-events: none;
}

.account-shell {
  z-index: 1 !important;
  grid-template-columns: minmax(20rem, 34rem) minmax(20rem, 29rem) !important;
  width: min(78rem, calc(100% - 2rem)) !important;
  gap: clamp(1.4rem, 3vw, 2.2rem) !important;
  align-items: stretch !important;
}

.account-panel {
  border-radius: 10px !important;
  box-shadow: 0 22px 60px rgb(12 47 83 / 10%) !important;
}

.account-copy {
  position: relative !important;
  min-height: 30.5rem !important;
  overflow: hidden !important;
  padding: clamp(1.6rem, 4vw, 3.2rem) !important;
  background:
    radial-gradient(circle at 80% 85%, rgb(123 255 229 / 32%), transparent 15rem),
    radial-gradient(circle at 20% 8%, rgb(255 255 255 / 18%), transparent 8rem),
    linear-gradient(145deg, #061f4b 0%, #0a4773 52%, #64d8c9 132%) !important;
}

.account-copy::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 55% 8%, rgb(255 255 255 / 18%), transparent 16rem),
    linear-gradient(125deg, transparent 0 42%, rgb(255 255 255 / 13%) 42.3% 43.2%, transparent 43.5%),
    linear-gradient(145deg, transparent 0 58%, rgb(87 222 210 / 14%) 58.2% 59%, transparent 59.2%);
  content: "";
}

.account-copy::after {
  position: absolute;
  right: -3.8rem;
  bottom: -5.5rem;
  width: 18rem;
  height: 18rem;
  border: 2.2rem solid rgb(255 255 255 / 8%);
  border-radius: 50%;
  content: "";
}

.account-copy > * {
  position: relative;
  z-index: 1;
}

.account-copy .kicker {
  color: #9fffea !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

.account-copy h1 {
  font-size: clamp(2.45rem, 4.6vw, 4.1rem) !important;
  line-height: 0.95 !important;
  text-transform: uppercase !important;
}

.account-lead {
  margin: 0.35rem 0 0 !important;
  color: #fff !important;
  font-size: clamp(1.8rem, 3vw, 2.8rem) !important;
  font-weight: 500 !important;
  line-height: 1.08 !important;
}

.account-copy ul {
  gap: 0.82rem !important;
  margin-top: 1.65rem !important;
}

.account-copy li {
  min-height: 1.65rem !important;
  padding-left: 2.25rem !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.account-copy li::before {
  top: -0.05rem !important;
  display: grid !important;
  width: 1.45rem !important;
  height: 1.45rem !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: rgb(100 216 201 / 18%) !important;
  color: #9fffea !important;
  content: "\2713" !important;
  font-weight: 950 !important;
}

.account-form {
  gap: 0.9rem !important;
  padding: clamp(1.25rem, 3vw, 2.1rem) !important;
}

.account-form label {
  gap: 0.42rem !important;
  font-size: 0.84rem !important;
}

.account-form input {
  min-height: 3.05rem !important;
  background: #fbfeff !important;
  padding: 0 1.05rem !important;
  box-shadow: inset 0 1px 0 rgb(6 38 79 / 3%) !important;
}

.account-form input:focus {
  background: #f7fffe !important;
  box-shadow:
    0 0 0 3px rgb(23 183 200 / 14%),
    0 0.65rem 1.4rem rgb(23 183 200 / 10%) !important;
}

.account-submit {
  min-height: 3.05rem !important;
  background: linear-gradient(135deg, #5fd4d3, #33c5c7) !important;
  box-shadow: 0 0.85rem 1.7rem rgb(45 197 199 / 25%) !important;
  text-transform: uppercase !important;
}

@media (max-width: 780px) {
  .account-shell {
    grid-template-columns: 1fr !important;
    width: calc(100% - 1rem) !important;
    max-width: 34rem !important;
  }

  .account-copy {
    min-height: 22rem !important;
  }
}
