.account-main {
  position: relative;
  overflow: hidden;
  padding: 58px 0 185px;
  background:
    radial-gradient(circle at 8% 15%, rgba(255, 194, 68, .18), transparent 24%),
    radial-gradient(circle at 92% 12%, rgba(21, 153, 210, .2), transparent 26%),
    linear-gradient(145deg, #fbfdfe, #edf8fd);
}

.account-main::before,
.account-main::after {
  content: "";
  position: absolute;
  border: 44px solid rgba(21, 153, 210, .055);
  border-radius: 50%;
  pointer-events: none;
}

.account-main::before {
  width: 300px;
  height: 300px;
  top: -170px;
  right: -100px;
  animation: account-orbit-large 16s ease-in-out infinite alternate;
}

.account-main::after {
  width: 210px;
  height: 210px;
  bottom: -145px;
  left: -90px;
  animation: account-orbit-small 13s ease-in-out infinite alternate;
}

.account-main .account-auth {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), 1080px);
  max-width: 1080px;
  min-height: 620px;
  grid-template-columns: minmax(0, .95fr) minmax(430px, 1.05fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(220, 232, 238, .9);
  border-radius: 30px;
  padding: 0;
  background: #fff;
  box-shadow: 0 30px 80px rgba(24, 85, 115, .16);
  animation: account-shell-arrive .75s cubic-bezier(.2, .75, .25, 1) both;
}

.account-main .account-intro {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding: 48px 46px;
  background: linear-gradient(155deg, #149bd4, #0875aa);
  color: #fff;
}

.account-shinchan-stage {
  position: relative;
  z-index: 4;
  height: 0;
  pointer-events: none;
}

.account-shinchan {
  position: absolute;
  left: 50%;
  bottom: -93px;
  width: clamp(205px, 18vw, 265px);
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 14px 12px rgba(7, 51, 75, .18));
  transform: translateX(-50%);
  transform-origin: 50% 72%;
  animation: account-shinchan-rest 4.6s ease-in-out infinite;
}

.account-main .account-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .2) 0 3px, transparent 4px),
    radial-gradient(circle at 74% 28%, rgba(255, 204, 72, .36) 0 4px, transparent 5px),
    radial-gradient(circle at 36% 76%, rgba(255, 255, 255, .14) 0 2px, transparent 3px),
    linear-gradient(112deg, transparent 25%, rgba(255, 255, 255, .08) 46%, transparent 68%);
  background-size: 150px 150px, 210px 210px, 110px 110px, 230% 100%;
  animation: account-sparkle-drift 18s linear infinite, account-light-sweep 9s ease-in-out infinite;
}

.account-main .account-intro::after {
  content: "";
  position: absolute;
  right: -115px;
  bottom: -100px;
  width: 330px;
  height: 330px;
  border: 50px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  animation: account-ring-breathe 7s ease-in-out infinite;
}

.account-intro__logo {
  position: relative;
  z-index: 1;
  width: min(100%, 260px);
  height: auto;
  filter: drop-shadow(0 10px 14px rgba(0, 48, 82, .18));
  transform-origin: 35% 50%;
  animation: account-logo-float 5.5s ease-in-out infinite;
}

.account-intro__content {
  position: relative;
  z-index: 1;
  margin-top: 72px;
  animation: account-copy-arrive .8s .18s cubic-bezier(.2, .75, .25, 1) both;
}

.account-intro__badge {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255,255,255,.1);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .14);
  animation: account-badge-pulse 3.4s ease-out infinite;
}

.account-main .account-intro h1 {
  max-width: 480px;
  margin: 18px 0 14px;
  color: #fff;
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -.05em;
}

.account-main .account-intro h1 em {
  color: #fff;
}

.account-main .account-intro > p,
.account-main .account-intro__content > p {
  max-width: 470px;
  margin: 0;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  line-height: 1.75;
}

.account-main .account-benefits {
  gap: 10px;
  margin-top: 24px;
}

.account-main .account-benefits span {
  color: rgba(255,255,255,.92);
  font-size: 12px;
  animation: account-benefit-arrive .55s both;
}

.account-main .account-benefits span:nth-child(1) {
  animation-delay: .42s;
}

.account-main .account-benefits span:nth-child(2) {
  animation-delay: .52s;
}

.account-main .account-benefits span:nth-child(3) {
  animation-delay: .62s;
}

.account-main .account-benefits span::before {
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,.16);
  color: #fff;
}

.account-main .account-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  border: 0;
  border-radius: 0;
  padding: 48px 58px;
  box-shadow: none;
  isolation: isolate;
  overflow: hidden;
  animation: account-card-arrive .72s .12s cubic-bezier(.2, .75, .25, 1) both;
}

.account-main .account-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -26%;
  right: -36%;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 153, 210, .1), transparent 68%);
  animation: account-card-glow 8s ease-in-out infinite alternate;
}

.account-card__eyebrow {
  margin-bottom: 14px;
  color: #1595d0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.account-main .auth-tabs {
  order: 0;
  margin-bottom: 28px;
  border-radius: 14px;
  padding: 5px;
}

.account-main .auth-tabs button {
  min-height: 43px;
  border-radius: 10px;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s ease;
}

.account-main .auth-tabs button:hover:not(.is-active) {
  color: #0874aa;
  background: rgba(255, 255, 255, .72);
  transform: translateY(-1px);
}

.account-main .account-form {
  gap: 17px;
}

.account-main .account-form:not([hidden]) {
  animation: account-form-switch .42s cubic-bezier(.2, .75, .25, 1) both;
}

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

.account-form__head {
  margin-bottom: 3px;
}

.account-main .account-form h2 {
  margin: 0 0 8px;
  font-size: 29px;
  letter-spacing: -.035em;
}

.account-main .account-form__head p {
  margin: 0;
  color: #6b8290;
  font-size: 13px;
  line-height: 1.6;
}

.account-main .account-form label {
  gap: 8px;
}

.account-main .account-form label > span:first-child {
  font-size: 12px;
}

.account-main .account-form input {
  min-height: 48px;
  background: #f9fcfd;
  transition: border-color .2s, box-shadow .2s;
}

.account-main .account-form input:hover {
  border-color: #b9d6e4;
}

.account-password {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d5e3ea;
  border-radius: 13px;
  background: #f9fcfd;
  transition: border-color .2s, box-shadow .2s;
}

.account-password:focus-within {
  border-color: #1595d0;
  box-shadow: 0 0 0 3px rgba(21,149,208,.12);
}

.account-main .account-password input {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-password button {
  align-self: stretch;
  border: 0;
  padding: 0 15px;
  background: transparent;
  color: #087fb8;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.account-main .account-submit {
  position: relative;
  overflow: hidden;
  min-height: 50px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #159bd4, #0874aa);
  box-shadow: 0 12px 25px rgba(8,116,170,.2);
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.account-main .account-submit::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: -70% auto -70% -35%;
  width: 24%;
  transform: rotate(18deg);
  background: rgba(255, 255, 255, .38);
  filter: blur(1px);
  animation: account-button-shine 4.2s 1.2s ease-in-out infinite;
}

.account-main .account-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 32px rgba(8,116,170,.28);
  filter: saturate(1.08);
}

.account-main .account-submit:active {
  transform: translateY(0) scale(.99);
}

.account-main .account-status {
  min-height: 18px;
  text-align: center;
}

.account-main .account-note {
  margin-top: 14px;
  padding-top: 14px;
  text-align: center;
}

@keyframes account-shell-arrive {
  from { opacity: 0; transform: translateY(24px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes account-card-arrive {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes account-copy-arrive {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes account-benefit-arrive {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes account-form-switch {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes account-logo-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  48% { transform: translateY(-7px) rotate(-.7deg); }
}

@keyframes account-badge-pulse {
  0%, 50%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .16); }
  72% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

@keyframes account-ring-breathe {
  0%, 100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes account-sparkle-drift {
  from { background-position: 0 0, 0 0, 0 0, 100% 0; }
  to { background-position: 150px 90px, -105px 160px, 55px -110px, -100% 0; }
}

@keyframes account-light-sweep {
  0%, 72%, 100% { opacity: .72; }
  84% { opacity: 1; }
}

@keyframes account-card-glow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-24px, 28px, 0) scale(1.16); }
}

@keyframes account-button-shine {
  0%, 60% { left: -35%; opacity: 0; }
  68% { opacity: 1; }
  84%, 100% { left: 120%; opacity: 0; }
}

@keyframes account-orbit-large {
  from { transform: translate3d(0, 0, 0) rotate(0); }
  to { transform: translate3d(-24px, 24px, 0) rotate(8deg); }
}

@keyframes account-orbit-small {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(26px, -18px, 0) scale(1.08); }
}

@keyframes account-shinchan-rest {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(0); }
  50% { transform: translateX(-50%) translateY(-5px) rotate(-.7deg); }
}

@media (max-width: 900px) {
  .account-main {
    padding: 36px 0 150px;
  }

  .account-main .account-auth {
    width: min(calc(100% - 30px), 600px);
    grid-template-columns: 1fr;
    align-items: stretch;
    background: linear-gradient(155deg, #149bd4, #0875aa);
  }

  .account-main .account-intro {
    width: 100%;
    min-height: 380px;
    align-self: stretch;
    padding: 32px;
  }

  .account-intro__logo {
    width: 220px;
  }

  .account-intro__content {
    margin-top: 46px;
  }

  .account-main .account-intro h1 {
    margin: 14px 0 0;
    font-size: 34px;
  }

  .account-main .account-intro__content > p,
  .account-main .account-benefits {
    display: none;
  }

  .account-main .account-card {
    width: 100%;
    align-self: stretch;
    background: #fff;
    padding: 40px 36px 44px;
  }

  .account-shinchan {
    bottom: -73px;
    width: 205px;
  }
}

@media (max-width: 520px) {
  .account-main {
    padding-bottom: 125px;
  }

  .account-main .account-auth {
    width: min(calc(100% - 22px), 480px);
    border-radius: 22px;
  }

  .account-main .account-intro {
    min-height: 350px;
    padding: 26px 24px;
  }

  .account-intro__logo {
    width: 190px;
  }

  .account-intro__content {
    margin-top: 30px;
  }

  .account-main .account-intro h1 {
    font-size: 28px;
  }

  .account-main .account-card {
    padding: 32px 22px 36px;
  }

  .account-main .account-form h2 {
    font-size: 25px;
  }

  .account-shinchan {
    bottom: -60px;
    width: 165px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-main *,
  .account-main::before,
  .account-main::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
}
