.auth-page {
  --auth-line: #514066;
  --auth-muted: #bcb0ca;
  min-width: 320px;
  margin: 0;
  color: #f5f1fb;
  background: #030106;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color-scheme: dark;
}
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-page button, .auth-page input { font: inherit; }
.auth-page .login-page { position: relative; display: grid; min-height: 100vh; min-height: 100svh; place-items: center; padding: 56px 24px; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at center, #241135, #030106 65%); }
.auth-scene { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.auth-page .login-panel { position: relative; display: block; width: min(444px, 100%); min-height: 0; padding: 20px; border: 1px solid var(--auth-line); border-radius: 9px; background: rgba(15,10,23,.96); box-shadow: 0 22px 80px #0006; }
.auth-page .login-card { width: 100%; max-width: none; margin: 0; padding: 24px 22px; border: 1px solid var(--auth-line); border-radius: 9px; color: #f5f1fb; background: linear-gradient(155deg,#a78bfa08,transparent 42%),#181221; box-shadow: inset 0 1px 0 #ffffff06; }
.auth-page .login-card-brand { display: flex; align-items: center; gap: 10px; padding: 0 0 18px; margin: 0 0 22px; border-bottom: 1px solid #372b48; }
.auth-page .login-card-brand img { width: 34px; height: 34px; flex: 0 0 auto; padding: 0; border: 1px solid #e8e0ef; border-radius: 6px; object-fit: cover; background: #f5f1fb; }
.auth-page .login-card-brand strong { display: block; color: #f5f1fb; font-size: 17px; font-weight: 700; line-height: 1.5; letter-spacing: 0; }
.auth-page .login-card-brand span { display: block; margin-top: 2px; color: var(--auth-muted); font-size: 11px; line-height: 1.5; }
.auth-page .login-card h2 { margin: 0 0 20px; color: #f5f1fb; font-size: 22px; font-weight: 650; line-height: 1.4; letter-spacing: 0; }
.auth-page .login-card > p:not(.message):not(.login-switch) { color: var(--auth-muted); margin: 0 0 18px; font-size: 13px; line-height: 1.65; }
.auth-page .auth-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; padding: 4px; margin-bottom: 21px; border: 1px solid #372b48; border-radius: 6px; background: #100c18; }
.auth-page .auth-tab { height: 37px; min-height: 0; padding: 0 6px; border: 0; border-radius: 4px; color: var(--auth-muted); background: transparent; cursor: pointer; font-size: 13px; font-weight: 400; box-shadow: none; }
.auth-page .auth-tab[aria-selected="true"] { color: #ede4ff; background: #302045; box-shadow: inset 0 0 0 1px #a78bfa15; }
.auth-page .field { position: relative; display: block; margin: 0 0 16px; }
.auth-page .field label { display: block; margin: 0 0 7px; color: var(--auth-muted); font-size: 13px; font-weight: 400; line-height: 1.5; }
.auth-page .field input { display: block; width: 100%; height: 46px; min-height: 46px; padding: 11px 13px; border: 1px solid var(--auth-line); border-radius: 6px; outline: 0; color: #f5f1fb; background: #100c18; box-shadow: inset 0 2px 5px #0002; transition: border-color 160ms,box-shadow 160ms; }
.auth-page .field input:focus { border-color: #a78bfa; box-shadow: 0 0 0 3px #a78bfa20; }
.auth-page .field input::placeholder { color: #82758f; }
.auth-page .auth-field-hint { display: block; margin-top: 6px; color: var(--auth-muted); font-size: 11px; line-height: 1.5; }
.auth-page .field input:-webkit-autofill { -webkit-text-fill-color: #f5f1fb; box-shadow: inset 0 0 0 1000px #100c18; }
.auth-page .field-code input { padding-right: 137px; }
.auth-page .field-password input { padding-right: 48px; }
.auth-page .auth-remember-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin: -4px 0 16px; color: var(--auth-muted); font-size: 12px; line-height: 1.5; }
.auth-page .auth-remember { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; margin: 0; color: #f5f1fb; cursor: pointer; }
.auth-page .auth-remember input { width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; accent-color: #a78bfa; cursor: pointer; }
.auth-page .auth-code-button, .auth-page .auth-password-toggle { position: absolute; right: 6px; bottom: 6px; height: 34px; min-height: 0; padding: 5px 9px; border: 1px solid #514066; border-radius: 5px; color: #b998f2; background: #21182f; cursor: pointer; font-size: 12px; font-weight: 400; box-shadow: inset 0 1px 0 #ffffff0a; }
.auth-page .auth-password-toggle { display: grid; place-items: center; width: 34px; padding: 7px; }
.auth-password-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.auth-page .auth-password-text { display: block; margin: -6px 0 12px auto; padding: 0; min-height: 24px; border: 0; background: transparent; color: #b998f2; font-size: 12px; box-shadow: none; cursor: pointer; }
.auth-page .primary { width: 100%; height: 46px; min-height: 0; margin: 0; padding: 0 12px; border: 1px solid #9465ed; border-radius: 6px; color: #fff; background: linear-gradient(#ffffff09,transparent),#7c3aed; box-shadow: inset 0 1px 0 #ffffff26,0 2px 0 #0002; cursor: pointer; font-size: 14px; font-weight: 650; }
.auth-page .primary:hover:not(:disabled) { background: #8b5cf6; border-color: #a78bfa; }
.auth-page button:disabled { cursor: not-allowed; opacity: .55; }
.auth-page .login-card .login-switch { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; color: var(--auth-muted); font-size: 13px; line-height: 1.5; }
.auth-page .login-switch a, .auth-page .login-change-account { color: #b998f2; text-decoration: none; }
.auth-page .login-switch a:hover { color: #d4bcff; text-decoration: underline; text-underline-offset: 3px; }
.auth-page .login-card .message { margin: 12px 0 0; min-height: 0; color: var(--auth-muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-page .message:empty { display: none; }
.auth-page .auth-filing { margin-top: 20px; text-align: center; font-size: 12px; line-height: 1.6; }
.auth-page .auth-filing a { color: var(--auth-muted); text-decoration: none; }
.auth-page .auth-filing a:hover { text-decoration: underline; }
.auth-page :is(button,a,input):focus-visible { outline: 2px solid #a78bfa; outline-offset: 3px; }
.auth-page [hidden] { display: none !important; }
@media (max-width: 639px) {
  .auth-page .login-page { padding: 28px 12px; }
  .auth-page .login-panel { padding: 12px; }
  .auth-page .login-card { padding: 22px 18px; }
  .auth-page .field input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page *, .auth-page *::before, .auth-page *::after { animation: none !important; transition: none !important; }
}
