:root {
  color-scheme: light;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: #21172a;
  background: #f7f5f8;
  --muted: #675d71;
  --line: #d9d2df;
  --accent: #6744a2;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.login-layout {
  display: grid;
  grid-template-columns: 53% minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1920px;
  margin-inline: auto;
}
.showcase {
  display: flex;
  align-items: end;
  position: relative;
  isolation: isolate;
  min-height: 620px;
  margin: 18px 0 18px 18px;
  border-radius: 24px;
  overflow: hidden;
  background: #2a1736;
  color: #fff8ff;
}
.showcase-image, .showcase::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.showcase-image { object-fit: cover; object-position: center 48%; }
.showcase::after { content: ""; background: linear-gradient(180deg, transparent 39%, #2b103c24 59%, #1a1024e0 92%); }
.showcase-copy { padding: clamp(34px, 5vw, 82px); }
.caption-rule { display: block; width: 42px; height: 2px; margin-bottom: 22px; background: #d7b5ff; }
.showcase h2 { margin: 0 0 16px; font-size: clamp(36px, 4.25vw, 76px); line-height: 1.15; font-weight: 700; letter-spacing: .025em; }
.showcase p { display: flex; gap: 10px; margin: 0; color: #ecdff7; font-size: clamp(12px, 1.08vw, 16px); line-height: 1.55; }

.access {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100% - 96px, 405px);
  margin-inline: auto;
  padding-block: clamp(34px, 6vh, 76px) clamp(30px, 5vh, 60px);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .01em; font-size: 17px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #f6edff; background: #332146; box-shadow: inset 0 1px 0 #ffffff26; }
.brand-mark svg { width: 26px; height: 26px; }
.access-content { align-self: center; padding-block: 54px; min-width: 0; }
h1 { margin: 0 0 13px; font-size: clamp(34px, 3.15vw, 51px); font-weight: 730; letter-spacing: -.045em; line-height: 1.18; }
.intro { margin: 0 0 36px; color: var(--muted); font-size: 15px; line-height: 1.7; }
form { display: grid; gap: 20px; }
.field { display: grid; gap: 9px; }
.field label { font-size: 13px; font-weight: 650; }
.input-shell { display: flex; align-items: center; min-width: 0; min-height: 54px; background: #fff; border: 1px solid var(--line); border-radius: 11px; transition: border-color .16s, box-shadow .16s; }
.input-shell:hover { border-color: #ab9db7; }
.input-shell:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #6744a222; }
.input-shell:has(input[aria-invalid="true"]) { border-color: #aa4863; }
.input-icon { width: 19px; height: 19px; margin-left: 15px; color: #766682; flex: none; }
.input-shell input { align-self: stretch; width: 100%; min-width: 0; padding: 12px; color: inherit; background: transparent; border: 0; outline: 0; font-size: 16px; }
.input-shell input::placeholder { color: #7a7083; }
.input-shell input:autofill { box-shadow: 0 0 0 30px #fff inset; }
.password-toggle { width: 44px; min-height: 44px; display: grid; place-items: center; flex: none; margin-right: 3px; border: 0; border-radius: 8px; color: #685971; background: transparent; }
.password-toggle:hover { background: #f2ebfa; color: #4c316e; }
.password-toggle svg { width: 19px; height: 19px; }
.eye-slash { display: none; }
.password-toggle[aria-label="隐藏密码"] .eye-slash { display: block; }
.caps-hint { font-size: 12px; color: #765600; margin: 0; }
.feedback { color: #8a2545; background: #faeaf0; border: 1px solid #ebc5d0; margin: 0; padding: 10px 13px; font-size: 13px; line-height: 1.65; border-radius: 9px; }
.feedback[data-tone="info"] { color: #58416d; background: #f1eaf7; border-color: #e3d7ec; }
.submit { position: relative; display: grid; place-items: center; width: 100%; min-height: 54px; margin-top: 3px; color: #fff; font-weight: 650; font-size: 15px; border: 1px solid #39234f; border-radius: 11px; background: linear-gradient(115deg, #41275a, #5c3a7a); box-shadow: 0 6px 15px #3a215325; transition: background .16s, box-shadow .16s; }
.submit:hover { background: linear-gradient(115deg, #52316f, #714b91); box-shadow: 0 8px 16px #3a215337; }
.submit:active { box-shadow: 0 2px 8px #3a215325; }
.submit:disabled { cursor: wait; }
.submit-arrow, .spinner { position: absolute; right: 16px; width: 20px; height: 20px; }
.spinner { display: none; border: 2px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.submit:disabled .spinner { display: block; }
.submit:disabled .submit-arrow { display: none; }
.security { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.security svg { width: 17px; height: 17px; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .login-layout { grid-template-columns: 48% minmax(0, 1fr); }
  .access { width: min(100% - 54px, 405px); }
}
@media (max-width: 680px) {
  .login-layout { display: flex; flex-direction: column; }
  .showcase { order: 2; min-height: 170px; margin: 0 16px 16px; border-radius: 16px; }
  .showcase-image { object-position: center 43%; }
  .showcase::after { background: linear-gradient(90deg, #20122de8, #20122d08); }
  .showcase-copy { padding: 22px 20px; }
  .caption-rule { width: 28px; margin-bottom: 12px; }
  .showcase h2 { margin-bottom: 8px; font-size: 24px; }
  .showcase p { gap: 5px; font-size: 11px; }
  .access { flex: 1; width: min(100% - 44px, 405px); padding-block: 25px; }
  .access-content { padding-block: 38px 26px; }
  .intro { margin-bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
