.account-page {
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 9% 18%, rgba(139, 82, 255, .18), transparent 26rem),
    radial-gradient(circle at 86% 12%, rgba(52, 205, 255, .13), transparent 25rem),
    linear-gradient(155deg, #060714 0%, #0b0921 48%, #050914 100%);
}

.account-page::before {
  opacity: .35;
  background:
    linear-gradient(rgba(139, 104, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 104, 255, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.account-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.account-aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(74px);
  opacity: .22;
  animation: account-drift 16s ease-in-out infinite alternate;
}

.account-aurora span:nth-child(1) {
  top: 12%;
  left: -9%;
  width: 36vw;
  height: 36vw;
  background: #7550ff;
}

.account-aurora span:nth-child(2) {
  top: 4%;
  right: -8%;
  width: 32vw;
  height: 32vw;
  background: #26c9ff;
  animation-delay: -6s;
}

.account-aurora span:nth-child(3) {
  right: 24%;
  bottom: -20%;
  width: 42vw;
  height: 42vw;
  background: #a94cff;
  animation-delay: -10s;
}

.account-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(154, 126, 255, .13);
  background: rgba(5, 7, 18, .68);
  backdrop-filter: blur(20px);
}

.account-nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.account-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #b8b4cf;
  font-size: .9rem;
  font-weight: 700;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.account-nav-links a:hover,
.account-nav-links a.is-active {
  color: #ffffff;
  background: rgba(132, 83, 255, .13);
}

.account-nav-links .account-home-link {
  margin-left: 6px;
  padding-inline: 17px;
  color: #f6f2ff;
  border: 1px solid rgba(160, 128, 255, .34);
}

.account-main {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - 166px);
  padding-block: clamp(44px, 7vw, 90px);
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(480px, 1fr);
  align-items: center;
  gap: clamp(44px, 8vw, 112px);
}

.account-intro {
  max-width: 590px;
}

.account-mark {
  position: relative;
  width: 82px;
  height: 82px;
  margin-bottom: 30px;
}

.account-mark span {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(147, 111, 255, .55);
  border-radius: 50%;
  animation: account-ring 3s var(--ease-out) infinite;
}

.account-mark img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 162px;
  max-width: none;
  translate: -50% -50%;
  clip-path: circle(25% at 50% 50%);
  filter: drop-shadow(0 0 20px rgba(116, 194, 255, .28));
  animation: account-logo-pulse 3s ease-in-out infinite;
}

.account-intro h1 {
  margin: 18px 0 22px;
  max-width: 680px;
  font-size: clamp(3.3rem, 6.3vw, 6.2rem);
  line-height: .92;
  letter-spacing: -.07em;
}

.account-intro h1 span {
  color: #9a6bff;
  background: linear-gradient(100deg, #8d5cff, #d57fff 55%, #62d9ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.account-intro > p:not(.section-kicker) {
  max-width: 570px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.account-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.account-benefits span {
  padding: 8px 13px;
  border: 1px solid rgba(145, 112, 255, .22);
  border-radius: 999px;
  color: #c6bfd9;
  background: rgba(17, 14, 40, .5);
  font-size: .79rem;
  font-weight: 700;
}

.account-panel {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  padding: clamp(27px, 4vw, 48px);
  border: 1px solid rgba(151, 123, 255, .24);
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(25, 20, 55, .92), rgba(9, 12, 29, .96)),
    rgba(10, 10, 24, .95);
  box-shadow:
    0 35px 110px rgba(0, 0, 0, .46),
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 0 0 1px rgba(132, 93, 255, .05);
  backdrop-filter: blur(28px);
}

.account-panel-shine {
  position: absolute;
  top: -45%;
  left: -20%;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(153, 103, 255, .15), transparent 67%);
}

.account-view {
  position: relative;
  z-index: 2;
  animation: account-view-in .48s var(--ease-out) both;
}

.account-view[hidden] {
  display: none;
}

.account-loading {
  min-height: 510px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.account-loader {
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border: 3px solid rgba(157, 118, 255, .18);
  border-top-color: #9a6bff;
  border-radius: 50%;
  animation: account-spin .8s linear infinite;
}

.account-loading h2 {
  margin: 0;
}

.account-loading p {
  margin-top: 7px;
}

.account-view-heading {
  margin-bottom: 28px;
}

.account-view-heading h2 {
  margin: 8px 0 8px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.account-view-heading strong {
  color: #dfd8f2;
}

.account-form {
  display: grid;
  gap: 17px;
}

.account-form label:not(.account-checkbox) {
  display: grid;
  gap: 8px;
}

.account-form label > span:first-child {
  color: #d9d4e8;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .035em;
}

.account-form input {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid rgba(155, 133, 218, .2);
  border-radius: 15px;
  outline: 0;
  color: #ffffff;
  background: rgba(5, 7, 18, .68);
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.account-form input::placeholder {
  color: #77738a;
}

.account-form input:focus {
  border-color: rgba(158, 106, 255, .74);
  background: rgba(7, 8, 22, .92);
  box-shadow: 0 0 0 4px rgba(138, 84, 255, .12);
}

.account-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.account-checkbox {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  color: #a9a3b8;
  font-size: .79rem;
  line-height: 1.55;
}

.account-checkbox input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: #8f5cff;
}

.account-checkbox a,
.account-switch a,
.account-help a {
  color: #a879ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-primary-button {
  min-height: 55px;
  margin-top: 3px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(100deg, #7245ec, #9a5cff 54%, #b867f1);
  box-shadow: 0 16px 35px rgba(96, 50, 213, .28);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.account-primary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 20px 42px rgba(96, 50, 213, .38);
}

.account-primary-button:disabled,
.account-text-button:disabled,
.account-ghost-button:disabled {
  opacity: .58;
  cursor: wait;
  transform: none;
}

.account-switch {
  margin-top: 24px;
  color: #b8b2c6;
  text-align: center;
  font-size: .9rem;
}

.account-help {
  margin: 14px auto 0;
  max-width: 430px;
  color: #777487;
  text-align: center;
  font-size: .76rem;
}

.verification-code {
  text-align: center;
  font-size: 1.7rem !important;
  font-weight: 850 !important;
  letter-spacing: .38em;
}

.account-text-button,
.account-ghost-button {
  border: 1px solid rgba(155, 124, 255, .25);
  border-radius: 13px;
  color: #c8b6ee;
  background: rgba(124, 75, 230, .08);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.account-text-button {
  min-height: 46px;
}

.account-ghost-button {
  padding: 10px 14px;
  white-space: nowrap;
}

.account-status {
  position: relative;
  z-index: 3;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(113, 224, 204, .27);
  border-radius: 14px;
  color: #c8fff2;
  background: rgba(28, 128, 105, .13);
  font-size: .84rem;
}

.account-status.is-error {
  border-color: rgba(255, 111, 129, .3);
  color: #ffd5db;
  background: rgba(162, 41, 62, .16);
}

.dashboard-heading,
.dashboard-identity {
  display: flex;
  align-items: center;
}

.dashboard-heading {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}

.dashboard-identity {
  gap: 15px;
  min-width: 0;
}

.dashboard-avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(176, 129, 255, .4);
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(145deg, #6f42e8, #b162ef);
  box-shadow: 0 12px 28px rgba(87, 47, 180, .28);
  font-size: 1.35rem;
  font-weight: 900;
}

.dashboard-heading h2 {
  margin: 3px 0 1px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -.04em;
}

.dashboard-heading p:not(.section-kicker) {
  max-width: 270px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .8rem;
}

.dashboard-highlight {
  padding: 17px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(155, 127, 238, .17);
  border-radius: 19px;
  background: rgba(8, 9, 25, .52);
}

.dashboard-highlight div {
  display: grid;
  gap: 3px;
}

.dashboard-highlight div span,
.dashboard-grid article span {
  color: #817c91;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-highlight strong {
  font-size: .97rem;
}

.dashboard-badge {
  padding: 6px 10px;
  border-radius: 999px;
  color: #c7aaff;
  background: rgba(140, 84, 255, .14);
  font-size: .7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-stats {
  margin-block: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.dashboard-stats article {
  padding: 14px 8px;
  display: grid;
  justify-items: center;
  border: 1px solid rgba(154, 126, 222, .13);
  border-radius: 16px;
  background: rgba(10, 10, 27, .43);
}

.dashboard-stats strong {
  color: #f4efff;
  font-size: 1.22rem;
}

.dashboard-stats span {
  color: #817c90;
  font-size: .66rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dashboard-grid article {
  min-height: 92px;
  padding: 15px;
  display: grid;
  align-content: space-between;
  gap: 9px;
  border: 1px solid rgba(154, 126, 222, .13);
  border-radius: 17px;
  background: rgba(8, 9, 23, .48);
}

.dashboard-grid article strong {
  color: #d7d1e5;
  font-size: .83rem;
  line-height: 1.35;
}

.dashboard-app-cta {
  margin-top: 16px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(78, 208, 255, .17);
  border-radius: 18px;
  background: linear-gradient(100deg, rgba(59, 168, 217, .1), rgba(137, 79, 232, .1));
}

.dashboard-app-cta div {
  display: grid;
  gap: 2px;
}

.dashboard-app-cta span {
  color: #75ddff;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dashboard-app-cta strong {
  max-width: 340px;
  color: #a9a3b8;
  font-size: .75rem;
  line-height: 1.4;
}

.dashboard-app-cta a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 11px;
  color: #ffffff;
  background: rgba(107, 67, 210, .82);
  font-size: .72rem;
  font-weight: 800;
}

.account-footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #777386;
  font-size: .78rem;
}

.account-footer div {
  display: flex;
  gap: 20px;
}

.account-footer a:hover {
  color: #d4caea;
}

.account-noscript {
  position: relative;
  z-index: 4;
  padding: 14px;
  border-radius: 14px;
  color: #ffd6dd;
  background: rgba(150, 35, 57, .2);
}

@keyframes account-drift {
  from { transform: translate3d(-4%, -2%, 0) scale(.95); }
  to { transform: translate3d(5%, 6%, 0) scale(1.08); }
}

@keyframes account-ring {
  0% { opacity: 0; transform: scale(.72); }
  24% { opacity: .75; }
  100% { opacity: 0; transform: scale(1.45); }
}

@keyframes account-logo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes account-view-in {
  from { opacity: 0; transform: translateY(18px); filter: blur(7px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes account-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .account-main {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .account-intro {
    max-width: 720px;
  }

  .account-intro h1 {
    max-width: 720px;
    font-size: clamp(3.25rem, 10vw, 5.6rem);
  }
}

@media (max-width: 720px) {
  .account-nav {
    min-height: 74px;
  }

  .account-nav .brand-text {
    font-size: 1.35rem;
  }

  .account-nav .brand-logo {
    width: 41px;
    height: 41px;
  }

  .account-nav-links {
    gap: 2px;
  }

  .account-nav-links a {
    padding: 7px 8px;
    font-size: .74rem;
  }

  .account-nav-links .account-home-link {
    display: none;
  }

  .account-main {
    min-height: auto;
    padding-block: 38px 58px;
  }

  .account-intro {
    text-align: center;
  }

  .account-mark {
    margin-inline: auto;
  }

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

  .account-benefits {
    justify-content: center;
  }

  .account-panel {
    min-height: 0;
    padding: 25px 19px;
    border-radius: 27px;
  }

  .account-form-row {
    grid-template-columns: 1fr;
  }

  .dashboard-heading {
    align-items: flex-start;
  }

  .dashboard-avatar {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-app-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-footer {
    padding-block: 24px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .account-nav-links a:first-child {
    display: none;
  }

  .account-intro h1 {
    font-size: 3rem;
  }

  .account-benefits span:nth-child(2) {
    display: none;
  }

  .dashboard-identity {
    gap: 10px;
  }

  .dashboard-heading p:not(.section-kicker) {
    max-width: 155px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-aurora span,
  .account-mark span,
  .account-mark img,
  .account-loader,
  .account-view {
    animation: none !important;
  }
}
[data-auth-state][hidden] {
  display: none !important;
}
