.dashi-login-page {
  background: radial-gradient(ellipse at 50% 0, #4e0d14, #1c050b 73%);
}

.dashi-login-page .dh-site {
  background:
    linear-gradient(180deg, #4d080f4d 0%, #4a060d66 45%, #250306a8 100%),
    url("assets/images/login-middle-20261128.webp") center top/cover no-repeat #35060b;
  box-shadow: 0 0 70px #1b020b65;
}

.dashi-auth-page .dh-auth .dh-auth-hero[data-dh-brand-hero] {
  min-height: clamp(278px, 74vw, 350px);
  padding-block: max(16px, env(safe-area-inset-top, 0px)) 70px;
  isolation: isolate;
  color: #fff0cc;
}

.dashi-auth-page .dh-auth .dh-auth-hero::before { content: none; }

.dh-login-scene {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  mask-image: linear-gradient(#000 73%, transparent);
  pointer-events: none;
}

.dh-login-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 48%;
}

.dh-login-scene::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #44030de8, #4a040ba0 30%, transparent 60%),
    linear-gradient(0deg, #67101d8a, transparent 35%);
  content: "";
}

.dashi-auth-page .dh-auth .dh-brand-row {
  min-height: 34px;
  filter: drop-shadow(0 0 8px #ffbc6c72);
}


.dashi-auth-page .dh-auth-hero-copy {
  width: fit-content;
  max-width: 57%;
  margin-top: clamp(29px, 10vw, 47px);
  text-shadow: 0 2px 14px #410107;
}

.dashi-auth-page .dh-auth-hero-title {
  color: #ffe3a3;
  font: 800 clamp(32px, 9vw, 44px)/1.2 "Songti SC", "SimSun", "DH Sans", serif;
  letter-spacing: .07em;
}

.dashi-auth-page .dh-auth-slogan {
  max-inline-size: none;
  margin-top: 12px;
  color: #fff0ce;
  font-size: .75rem;
}

.dashi-auth-page .dh-auth-hero-copy::after {
  display: block;
  width: 70px;
  height: 2px;
  margin-top: 17px;
  background: linear-gradient(90deg, #ffd882, #ffb95700);
  box-shadow: -4px 0 12px #ffb74045;
  content: "";
}

.dh-login-trails,
.dh-login-sparks {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.dh-login-trails {
  overflow: visible;
  fill: none;
  stroke: url(#dh-login-gold-line);
  stroke-width: 1.35;
  filter: drop-shadow(0 0 5px #ffb955);
  opacity: .75;
}

.dh-login-trails path + path { opacity: .48; }

.dh-login-sparks i {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffe0a0;
  box-shadow: 0 0 7px 2px #ff98277c;
  opacity: .54;
}

.dashi-auth-page .dh-auth-card {
  margin-top: -38px;
  border-color: #e7bd79;
  background: linear-gradient(160deg, #fffbf2, #fff6e5);
  box-shadow: 0 10px 26px #2d02085c, inset 0 1px 0 #fff;
}

.dashi-login-page .dh-auth-card::before {
  position: absolute;
  inset: -1px 25px auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffe2a2 40%, #fff3cd 49%, #f5bd68 62%, transparent);
  content: "";
  pointer-events: none;
}

.dashi-login-page .dh-auth-nav { background: #f7ecda; }
.dashi-login-page .dh-auth-nav a[aria-current="page"] { box-shadow: 0 1px 6px #98592530; }

.dashi-login-page .dh-auth-submit:enabled {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: #c37646;
  background: linear-gradient(108deg, #8f1426, #ad2434 48%, #681021);
  box-shadow: 0 4px 14px #a323392b, inset 0 1px 0 #ffbc895b;
}

.dashi-login-page .dh-auth-submit:enabled::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, transparent 36%, #ffc67c54 49%, transparent 61%);
  transform: translateX(-100%);
  content: "";
}

.dashi-login-page .dh-auth-company::before {
  width: 94px;
  background: linear-gradient(90deg, transparent, #f5c97dbf, transparent);
}

.dh-login-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.dashi-login-page .dh-auth-submit.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #8f1426;
  color: #fffaf2;
  cursor: progress;
}

.dh-auth-submit.is-loading::before {
  width: 16px;
  height: 16px;
  flex: none;
  border: 2px solid #fffaf259;
  border-top-color: #fffaf2;
  border-radius: 50%;
  content: "";
}

@media (prefers-reduced-motion: no-preference) {
  .dh-auth-submit.is-loading::before { animation: dh-feedback-spin .75s linear infinite; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Play on entry, then settle without distracting from the form. */
  .dh-login-scene img { animation: dh-login-breathe 4.8s ease-out both; }
  .dh-login-trails path { stroke-dasharray: 36 64; animation: dh-login-flow 4.4s ease-out both; }
  .dh-login-trails path + path { animation-delay: -.8s; }
  .dh-login-sparks i { animation: dh-login-spark 4.7s calc(var(--phase) * -.24s) ease-in-out both; }
  .dashi-login-page .dh-auth-submit:enabled::after { animation: dh-login-sheen 4.8s ease-in-out both; }
  .dashi-auth-page:has(.dh-welcome[open]) :is(.dh-login-scene img, .dh-login-trails path, .dh-login-sparks i),
  .dashi-login-page:has(.dh-welcome[open]) .dh-auth-submit:enabled::after {
    animation-play-state: paused;
  }
}

@keyframes dh-login-breathe {
  to { transform: scale(1.045) translateX(-1%); }
}

@keyframes dh-login-flow {
  to { stroke-dashoffset: -100; }
}

@keyframes dh-login-spark {
  0%, 100% { opacity: .22; transform: translate(0, 7px) scale(.75); }
  48% { opacity: 1; transform: translate(5px, -12px) scale(1.25); }
}

@keyframes dh-login-sheen {
  0%, 58% { transform: translateX(-105%); }
  83%, 100% { transform: translateX(105%); }
}
