:root {
  color-scheme: dark;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: #e9e4d8;
  background: #080914;
  --night: #080914;
  --deep-indigo: #111329;
  --mist: #a8a4b8;
  --ivory: #e9e4d8;
  --old-gold: #b9a26a;
  --ember: #d2b77a;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(66, 65, 118, .18), transparent 31rem),
    radial-gradient(circle at 82% 72%, rgba(56, 43, 88, .14), transparent 28rem),
    linear-gradient(145deg, #060711 0%, var(--night) 48%, #0b0b19 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
}

.night-sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--old-gold); box-shadow: 0 0 12px 2px rgba(185,162,106,.36); opacity: .56; }
.star-one { top: 17%; left: 14%; }
.star-two { top: 29%; right: 18%; width: 1px; height: 1px; opacity: .35; }
.star-three { right: 11%; bottom: 21%; }
.star-four { bottom: 14%; left: 23%; width: 1px; height: 1px; opacity: .28; }

.threshold {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 64px 24px 88px;
}

.login-card {
  position: relative;
  width: min(100%, 430px);
  padding: 0 44px 40px;
  border: 1px solid rgba(185,162,106,.19);
  border-top-color: rgba(210,183,122,.38);
  border-radius: 2px 2px 22px 22px;
  background: linear-gradient(155deg, rgba(22,23,45,.91), rgba(12,13,27,.96));
  box-shadow: 0 34px 110px rgba(0,0,0,.56), inset 0 1px rgba(255,255,255,.025);
  backdrop-filter: blur(20px);
}

.login-card::before,
.login-card::after {
  position: absolute;
  top: -1px;
  width: 28%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210,183,122,.72));
  content: "";
}
.login-card::before { left: 0; }
.login-card::after { right: 0; transform: scaleX(-1); }

.eclipse {
  position: relative;
  width: 108px;
  height: 108px;
  margin: -54px auto 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(210,183,122,.14);
  border-radius: 50%;
  background: #080914;
  box-shadow: 0 0 0 12px rgba(8,9,20,.72), 0 0 60px rgba(107,91,147,.18);
}

.eclipse::before {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(210,183,122,.58);
  border-radius: inherit;
  clip-path: inset(0 0 0 49%);
  content: "";
  filter: drop-shadow(0 0 7px rgba(210,183,122,.34));
  animation: breathe 5.5s ease-in-out infinite;
}

.eclipse::after {
  position: absolute;
  width: 1px;
  height: 42px;
  background: linear-gradient(transparent, var(--old-gold), transparent);
  content: "";
  opacity: .62;
}

.eclipse span { width: 5px; height: 5px; border: 1px solid var(--ember); transform: rotate(45deg); box-shadow: 0 0 12px rgba(210,183,122,.42); }

.intro { text-align: center; }
.eyebrow { color: var(--old-gold); font-size: 10px; font-weight: 650; letter-spacing: .28em; }
h1 {
  margin: 13px 0 10px;
  color: var(--ivory);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(32px, 7vw, 40px);
  font-weight: 500;
  letter-spacing: .16em;
  text-indent: .16em;
}
.intro p { margin: 0 0 30px; color: var(--mist); font-family: "Songti SC", "STSong", serif; font-size: 14px; line-height: 1.8; letter-spacing: .04em; }

form { display: grid; gap: 18px; }
label { display: grid; gap: 9px; color: #c9c5d0; font-size: 12px; letter-spacing: .1em; }
input {
  width: 100%;
  border: 1px solid rgba(168,164,184,.25);
  border-radius: 2px;
  padding: 13px 14px;
  background: rgba(5,6,15,.64);
  color: var(--ivory);
  caret-color: var(--ember);
  font: 500 15px/1.4 ui-sans-serif, system-ui, sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input:hover { border-color: rgba(185,162,106,.46); }
input:focus { outline: none; border-color: var(--old-gold); background: rgba(5,6,15,.88); box-shadow: 0 0 0 3px rgba(185,162,106,.12), inset 0 0 18px rgba(185,162,106,.035); }

button {
  min-height: 49px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(210,183,122,.68);
  border-radius: 2px;
  padding: 12px 17px 12px 20px;
  background: linear-gradient(100deg, rgba(185,162,106,.95), rgba(210,183,122,.9));
  color: #10101d;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .13em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
button i { font-size: 19px; font-style: normal; font-weight: 400; transition: transform .2s ease; }
button:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 8px 28px rgba(185,162,106,.17); }
button:hover i { transform: translateX(3px); }
button:focus-visible { outline: 3px solid rgba(210,183,122,.28); outline-offset: 3px; }

.error { margin: -12px 0 20px; border: 1px solid rgba(207,112,112,.28); border-radius: 2px; padding: 11px 13px; color: #e6b4b4; background: rgba(110,35,48,.2); font-size: 13px; line-height: 1.5; }
.security-note { margin: 22px 0 0; color: #747184; font-size: 11px; line-height: 1.55; text-align: center; }
.security-note span { margin-right: 5px; color: var(--old-gold); }

.site-filing { position: fixed; right: 14px; bottom: 12px; font-size: 10px; line-height: 1; }
.site-filing a { color: #555365; text-decoration: none; transition: color .2s ease; }
.site-filing a:hover, .site-filing a:focus-visible { color: var(--old-gold); text-decoration: underline; text-underline-offset: 3px; }

@keyframes breathe {
  0%, 100% { opacity: .52; transform: rotate(-8deg) scale(.98); }
  50% { opacity: .95; transform: rotate(4deg) scale(1.03); }
}

@media (max-width: 520px) {
  .threshold { padding: 78px 16px 82px; }
  .login-card { padding: 0 24px 30px; }
  .eclipse { width: 92px; height: 92px; margin-top: -46px; margin-bottom: 24px; }
  .intro p { margin-bottom: 25px; }
  .site-filing { right: 50%; transform: translateX(50%); white-space: nowrap; }
}

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