.account-console {
  max-width: 920px;
}

.auth-console {
  min-height: 100vh;
  display: grid;
  align-content: center;
}

.account-header {
  margin-bottom: 1.5rem;
}

.account-brand {
  display: inline-flex;
  color: #eaf4f6;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 2.25rem;
}

.account-lede,
.account-footnote {
  color: #9db7c0;
  max-width: 42rem;
  margin-top: 0.65rem;
}

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

.account-grid-single {
  grid-template-columns: minmax(0, 36rem);
  justify-content: center;
}

.account-panel {
  background: linear-gradient(145deg, #0a2535, #0b2a3a);
  border: 1px solid #1f6171;
  border-radius: 0.9rem;
  padding: 1.25rem;
}

.account-panel h2 {
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.account-form {
  display: grid;
  gap: 0.7rem;
  max-width: 36rem;
}

.account-form label {
  color: #b8cbd1;
  font-size: 0.88rem;
}

.account-form input,
.account-form select {
  color: #eaf4f6;
  background: #061924;
  border: 1px solid #2a7180;
  border-radius: 0.5rem;
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
}

.account-form input:focus,
.account-form select:focus {
  outline: 2px solid #64d8d2;
  outline-offset: 2px;
}

.account-form button {
  justify-self: start;
  margin-top: 0.25rem;
}

.account-message,
.account-status {
  background: #0d3442;
  border-left: 3px solid #28b8a5;
  border-radius: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.75rem;
}

.account-resend-form,
.account-change-email {
  display: inline-block;
  margin-top: 1rem;
}

.account-resend-form button[data-resend-countdown] {
  min-inline-size: 9.5rem;
}

.account-resend-form button[data-resend-countdown]:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.account-change-email {
  margin-left: 1rem;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: #061924;
}

.auth-split {
  width: min(1120px, 100%);
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  overflow: hidden;
  border: 1px solid #1f6171;
  border-radius: 1.5rem;
  background: #f3f7f8;
  box-shadow: 0 28px 70px rgb(0 0 0 / 24%);
}

.login-brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 4vw, 4rem);
  background:
    radial-gradient(circle at 30% 25%, rgb(40 184 165 / 18%), transparent 34%),
    linear-gradient(145deg, #e7f1f4, #f3f7f8);
  color: #102a43;
}

.login-brand-motion {
  width: min(100%, 480px);
  overflow: visible;
}

.login-brand-motion text {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 58px;
  font-weight: 700;
}

.login-brand-motion .brand-shell { fill: #102a43; }
.login-brand-motion .brand-path {
  fill: none;
  stroke: #28b8a5;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login-brand-motion .brand-nodes { fill: #f3f7f8; }
.login-brand-motion .brand-wordmark text { fill: #102a43; }
.login-brand-motion .brand-wordmark .brand-ai { fill: #28b8a5; }

.login-brand-motion.is-animated .brand-path {
  stroke-dasharray: 110;
  animation: login-path-generate 1.1s cubic-bezier(.22, .75, .22, 1) both;
}

.login-brand-motion.is-animated .brand-shell {
  transform-box: fill-box;
  transform-origin: center;
  animation: login-shell-generate 1.1s cubic-bezier(.22, .75, .22, 1) both;
}

.login-brand-motion.is-animated .brand-nodes circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: login-node-generate 1.1s ease-out both;
}
.login-brand-motion.is-animated .brand-nodes circle:nth-child(2) {
  animation-name: login-node-generate-two;
}
.login-brand-motion.is-animated .brand-nodes circle:nth-child(3) {
  animation-name: login-node-generate-three;
}
.login-brand-motion.is-animated .brand-nodes circle:nth-child(4) {
  animation-name: login-node-generate-four;
}

.login-brand-motion.is-animated .brand-wordmark {
  animation: login-wordmark-generate 1.1s ease-out both;
}

.login-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  color: #eaf4f6;
  background: #08202e;
}

.login-form-panel .account-form {
  width: 100%;
}

.login-form-panel .account-brand {
  margin-bottom: 2.25rem;
}

.login-brand-copy h1 {
  max-width: 10ch;
  margin: 0.5rem 0 0.85rem;
  color: #102a43;
  font-size: clamp(2.25rem, 4vw, 4.25rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.login-brand-copy p:last-child {
  color: #102a43;
  font-weight: 700;
}

.login-form-panel h2 {
  margin: 0.35rem 0 0;
  color: #eaf4f6;
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.login-form-panel .account-form > button {
  width: 100%;
  min-height: 3rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  color: #102a43;
  background: #28b8a5;
  border: 1px solid #28b8a5;
  border-radius: 0.55rem;
  box-shadow: 0 10px 24px rgb(40 184 165 / 18%);
  font-weight: 800;
}

.login-form-panel .account-form > button:hover {
  background: #eaf4f6;
  border-color: #eaf4f6;
}

.login-form-panel .account-form > button:focus-visible {
  outline: 3px solid #28b8a5;
  outline-offset: 3px;
}

.login-form-panel .account-form > button:disabled {
  cursor: not-allowed;
  color: #eaf4f6;
  background: #1f6171;
  border-color: #1f6171;
  box-shadow: none;
  opacity: 0.8;
}

.account-feedback {
  min-height: 3.25rem;
}

.account-error {
  border-left: 3px solid #f0a75e;
  padding: 0.75rem;
  background: #2c251d;
}

.login-secondary-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.login-secondary-actions .account-resend-form,
.login-secondary-actions .account-change-email {
  margin: 0;
}

@keyframes login-path-generate {
  0% { opacity: 1; stroke-dashoffset: 110; }
  50% { opacity: 1; stroke-dashoffset: 0; }
  100% { opacity: 1; stroke-dashoffset: 0; }
}

@keyframes login-shell-generate {
  0%, 60% { opacity: 0; transform: scale(.72); }
  76% { opacity: 1; transform: scale(1.045); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes login-node-generate {
  0%, 25% { opacity: 0; transform: scale(0); fill: #28b8a5; }
  36% { opacity: 1; transform: scale(1.4); fill: #28b8a5; }
  70% { opacity: 1; transform: scale(1); fill: #28b8a5; }
  82% { opacity: 1; transform: scale(1); fill: #f3f7f8; }
  100% { opacity: 1; transform: scale(1); fill: #f3f7f8; }
}

@keyframes login-node-generate-two {
  0%, 32% { opacity: 0; transform: scale(0); fill: #28b8a5; }
  43% { opacity: 1; transform: scale(1.4); fill: #28b8a5; }
  70% { opacity: 1; transform: scale(1); fill: #28b8a5; }
  82% { opacity: 1; transform: scale(1); fill: #f3f7f8; }
  100% { opacity: 1; transform: scale(1); fill: #f3f7f8; }
}

@keyframes login-node-generate-three {
  0%, 39% { opacity: 0; transform: scale(0); fill: #28b8a5; }
  50% { opacity: 1; transform: scale(1.4); fill: #28b8a5; }
  70% { opacity: 1; transform: scale(1); fill: #28b8a5; }
  82% { opacity: 1; transform: scale(1); fill: #f3f7f8; }
  100% { opacity: 1; transform: scale(1); fill: #f3f7f8; }
}

@keyframes login-node-generate-four {
  0%, 46% { opacity: 0; transform: scale(0); fill: #28b8a5; }
  57% { opacity: 1; transform: scale(1.4); fill: #28b8a5; }
  70% { opacity: 1; transform: scale(1); fill: #28b8a5; }
  82% { opacity: 1; transform: scale(1); fill: #f3f7f8; }
  100% { opacity: 1; transform: scale(1); fill: #f3f7f8; }
}

@keyframes login-wordmark-generate {
  0%, 84% { opacity: 0; transform: translateX(12px); }
  92% { opacity: 1; transform: translateX(-1px); }
  100% { opacity: 1; transform: none; }
}

.account-connection {
  border-bottom: 1px solid #174859;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.account-panel a {
  color: #64d8d2;
}

.account-panel .errorlist {
  color: #f0a75e;
  font-size: 0.88rem;
}

.account-panel > section {
  margin-top: 1.4rem;
}

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

  .account-brand {
    margin-bottom: 1.5rem;
  }

  .account-panel {
    padding: 1rem;
  }

  .auth-console {
    align-content: start;
  }

  .account-form button {
    width: 100%;
  }

  .account-resend-form,
  .account-change-email {
    display: block;
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .auth-page {
    min-height: 100svh;
    padding: 0;
    place-items: stretch;
  }

  .auth-split {
    min-height: 100svh;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(16.5rem, 38svh) minmax(0, 1fr);
    border: 0;
    border-radius: 0;
    overflow: hidden;
  }

  .login-brand-panel {
    order: 1;
    min-height: 0;
    padding: 1.25rem 1.25rem 3rem;
  }

  .login-form-panel {
    position: relative;
    z-index: 1;
    order: 2;
    justify-content: flex-start;
    min-height: 0;
    margin-top: -1.5rem;
    padding: 2rem 1.25rem 1.5rem;
    border-top: 1px solid rgb(100 216 210 / 38%);
    border-radius: 1.75rem 1.75rem 0 0;
    background: linear-gradient(160deg, #0a2635 0%, #08202e 35%, #061924 100%);
    box-shadow: 0 -15px 38px rgb(16 42 67 / 22%);
  }

  .login-brand-motion {
    width: min(100%, 330px);
  }

  .login-brand-motion text {
    font-size: 48px;
  }

  .login-brand-copy h1 {
    max-width: none;
    font-size: clamp(1.8rem, 8.5vw, 2.35rem);
  }

  .login-brand-copy p:last-child {
    font-size: .88rem;
  }

  .login-form-panel .account-brand {
    display: none;
  }

  .login-form-panel h2 {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-brand-motion.is-animated * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}
