:root {
  --ink: #0d2635;
  --night: #061c29;
  --paper: #f2efe8;
  --surface: #fffdf9;
  --signal: #21bbae;
  --signal-deep: #087c74;
  --gold: #e4c86f;
  --muted: #68787d;
  --line: rgb(13 38 53 / 14%);
}

* { box-sizing: border-box; }

body {
  align-items: center;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", sans-serif;
  justify-content: center;
  margin: 0;
  min-height: 100vh;
  padding: clamp(20px, 5vw, 72px);
}

body::before {
  background-image: linear-gradient(90deg, rgb(13 38 53 / 3.5%) 1px, transparent 1px), linear-gradient(rgb(13 38 53 / 3.5%) 1px, transparent 1px);
  background-size: 40px 40px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
}

.auth-shell {
  box-shadow: 0 30px 80px rgb(6 28 41 / 17%);
  display: grid;
  grid-template-columns: minmax(330px, .78fr) minmax(430px, 1.22fr);
  max-width: 1020px;
  min-height: 574px;
  overflow: hidden;
  position: relative;
  width: min(100%, 1020px);
}

.brand-panel {
  background: var(--night);
  color: #f4f8f5;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(34px, 5vw, 62px);
  position: relative;
}

.brand-panel::before {
  border: 1px solid rgb(112 228 211 / 20%);
  border-radius: 50%;
  content: "";
  height: 450px;
  position: absolute;
  right: -300px;
  top: -270px;
  width: 450px;
}

.brand-panel::after {
  background: linear-gradient(90deg, transparent 0 19px, rgb(33 187 174 / 34%) 19px 20px, transparent 20px 100%);
  bottom: 86px;
  content: "";
  height: 110px;
  opacity: .75;
  position: absolute;
  right: -42px;
  transform: skewY(-32deg);
  width: 210px;
}

.brand-lockup { align-items: center; color: inherit; display: inline-flex; gap: 12px; position: relative; text-decoration: none; width: fit-content; z-index: 1; }
.brand-lockup strong { display: block; font-size: 18px; letter-spacing: .09em; line-height: 1; }
.brand-lockup small { color: #8fabb1; display: block; font-size: 9px; letter-spacing: .16em; margin-top: 5px; }
.brand-mark { display: grid; gap: 3px; grid-template-columns: repeat(3, 7px); transform: skewY(-16deg); }
.brand-mark i { background: var(--signal); display: block; height: 7px; }
.brand-mark i:nth-child(2) { background: var(--gold); transform: translateY(5px); }
.brand-mark i:nth-child(3) { background: #d7ece4; transform: translateY(10px); }

.brand-copy { margin: auto 0; max-width: 310px; position: relative; z-index: 1; }
.eyebrow, .mode-kicker { color: var(--signal); font-size: 10px; font-weight: 800; letter-spacing: .18em; margin: 0 0 18px; }
.brand-copy h1 { font-family: Georgia, "Songti SC", serif; font-size: clamp(37px, 4vw, 50px); font-weight: 400; letter-spacing: -.065em; line-height: 1.1; margin: 0; }
.brand-copy > p:last-child { color: #abc0c1; font-size: 13px; line-height: 1.8; margin: 23px 0 0; max-width: 265px; }
.brand-footnote { align-items: center; color: #789399; display: flex; font-size: 9px; gap: 9px; letter-spacing: .13em; margin: 0; position: relative; z-index: 1; }
.brand-footnote span { background: var(--gold); display: inline-block; height: 5px; width: 5px; }

.login-panel { background: var(--surface); display: flex; padding: clamp(34px, 6vw, 72px); position: relative; }
.login-panel::after { background: var(--signal); bottom: 0; content: ""; height: 5px; left: 0; position: absolute; width: 76px; }
.login-panel__topline { align-items: center; color: #77868a; display: flex; font-size: 9px; font-weight: 800; gap: 10px; letter-spacing: .14em; left: clamp(34px, 6vw, 72px); position: absolute; right: clamp(34px, 6vw, 72px); top: 34px; }
.login-panel__topline i { background: var(--line); flex: 1; height: 1px; }
.login-panel__content { align-self: center; max-width: 390px; width: 100%; }
.login-mode { animation: reveal .48s ease both; }
.login-mode h2 { font-family: Georgia, "Songti SC", serif; font-size: clamp(38px, 4vw, 49px); font-weight: 400; letter-spacing: -.055em; line-height: 1.08; margin: 0; }
.login-mode > p { color: var(--muted); font-size: 14px; line-height: 1.75; margin: 16px 0 30px; max-width: 330px; }

.primary-action { align-items: center; background: var(--ink); border: 1px solid var(--ink); color: #fff; cursor: pointer; display: grid; font: inherit; font-size: 14px; font-weight: 700; gap: 12px; grid-template-columns: 26px 1fr auto; min-height: 60px; padding: 0 20px; text-align: left; transition: background .2s ease, border-color .2s ease, transform .2s ease; width: 100%; }
.primary-action:hover:not(:disabled) { background: var(--signal-deep); border-color: var(--signal-deep); transform: translateY(-2px); }
.primary-action:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.primary-action:disabled { cursor: not-allowed; opacity: .55; }
.primary-action__icon { align-items: center; border: 1px solid rgb(255 255 255 / 44%); display: flex; font-size: 12px; font-weight: 700; height: 25px; justify-content: center; width: 25px; }
.primary-action__arrow { color: #9adbd4; font-size: 19px; font-weight: 400; line-height: 1; transition: transform .2s ease; }
.primary-action:hover:not(:disabled) .primary-action__arrow { transform: translateX(4px); }
.authorizing-state { align-items: center; background: #edf6f3; border-left: 2px solid var(--signal); display: flex; gap: 8px; height: 60px; justify-content: center; }
.authorizing-state span { animation: pulse 1.1s ease-in-out infinite; background: var(--signal); border-radius: 50%; height: 7px; width: 7px; }
.authorizing-state span:nth-child(2) { animation-delay: .15s; }.authorizing-state span:nth-child(3) { animation-delay: .3s; }
.auth-status { color: #506268; font-size: 12px; line-height: 1.55; margin: 25px 0 0; min-height: 19px; }
.privacy-note { border-top: 1px solid var(--line); color: #839095; font-size: 11px; line-height: 1.65; margin: 25px 0 0; padding-top: 17px; }
.privacy-note span { color: var(--signal-deep); font-size: 16px; vertical-align: -1px; }

@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: .28; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-5px); } }

@media (max-width: 760px) {
  body { align-items: stretch; padding: 0; }
  .auth-shell { display: block; min-height: 100vh; }
  .brand-panel { min-height: 232px; padding: 29px 28px; }
  .brand-panel::after { bottom: -22px; right: -82px; }
  .brand-copy { margin: auto 0 0; }.brand-copy h1 { font-size: 34px; }.brand-copy > p:last-child, .brand-footnote { display: none; }
  .login-panel { min-height: calc(100vh - 232px); padding: 76px 28px 42px; }.login-panel__topline { left: 28px; right: 28px; }
}

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