/* Codex / 栗东云: the shared account-entry surface. */
body.ld-auth {
  --ld-ink: #1d1d1f;
  --ld-muted: #626268;
  --ld-accent: #0066cc;
  --ld-line: #dcdce0;
  --ld-paper: #f5f5f7;
  margin: 0;
  min-width: 320px;
  background: var(--ld-paper);
  color: var(--ld-ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ld-auth *, .ld-auth *::before, .ld-auth *::after { box-sizing: border-box; }
.ld-auth a { color: var(--ld-accent); text-decoration: none; cursor: pointer; }
.ld-auth a:hover { text-decoration: underline; }
.ld-auth :focus-visible { outline: 3px solid #0066cc66; outline-offset: 4px; }
.ld-auth .ld-auth-header { width: min(1080px, calc(100% - 64px)); margin: 0 auto; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ld-auth .ld-auth-brand { display: inline-flex; align-items: center; min-height: 44px; }
.ld-auth .ld-auth-brand img { display: block; width: 147px; height: 42px; object-fit: contain; }
.ld-auth .ld-auth-home { font-size: 14px; color: var(--ld-muted); padding: 10px 0 10px 16px; }
.ld-auth .template { width: 100%; min-height: 0; background: transparent; font-size: 16px; }
.ld-auth :is(#login, #regist, #forget) { width: 100%; min-height: 0; margin: 0; padding: 0 32px 48px; font-size: 16px; }
.ld-auth :is(.jq-login-shell, .jq-register-shell, .ld-forget-shell) { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 72px; align-items: center; width: min(1080px, 100%); min-height: 650px; margin: 20px auto 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.ld-auth :is(.jq-login-aside, .jq-register-aside) { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 24px 0; color: var(--ld-ink); background: transparent; }
.ld-auth :is(.jq-login-aside, .jq-register-aside)::after { content: none; }
.ld-auth .jq-brand-pill { display: block; font-size: 13px; line-height: 20px; font-weight: 500; letter-spacing: 1px; color: var(--ld-muted); }
.ld-auth :is(.jq-login-aside, .jq-register-aside) h1 { margin: 22px 0 24px; color: var(--ld-ink); font-size: clamp(36px, 3.8vw, 50px); font-weight: 650; line-height: 1.25; letter-spacing: -1.5px; }
.ld-auth :is(.jq-login-aside, .jq-register-aside) p { max-width: 370px; margin: 0; color: var(--ld-muted); font-size: 17px; line-height: 1.9; }
.ld-auth .ld-auth-symbol { order: -1; width: 72px; height: 72px; margin: 0 0 36px; padding: 12px; object-fit: contain; background: #fff; border-radius: 20px; box-shadow: 0 8px 24px #1d1d1f08; }
.ld-auth .jq-aside-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; padding-top: 28px; margin-top: 40px; border-top: 1px solid var(--ld-line); }
.ld-auth .jq-aside-grid strong { display: block; font-size: 15px; line-height: 1.5; color: var(--ld-ink); font-weight: 600; }
.ld-auth .jq-aside-grid span { display: block; margin-top: 6px; font-size: 12px; color: var(--ld-muted); }
.ld-auth .jq-aside-footer { display: none; }
.ld-auth :is(.jq-login-card, .jq-register-card) { align-self: center; min-width: 0; width: 100%; padding: 40px; color: var(--ld-ink); background: #fff; border: 1px solid #e5e5e8; border-radius: 24px; box-shadow: 0 12px 40px #1d1d1f05; }
.ld-auth .jq-topbar { display: flex; justify-content: flex-end; }
.ld-auth .jq-topbar:empty { display: none; }
.ld-auth .jq-register-jump { margin-bottom: 20px; }
.ld-auth .jq-register-jump a { color: inherit; }
.ld-auth .jq-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ld-auth .jq-kicker { display: none; }
.ld-auth .jq-card-head h2 { color: var(--ld-ink); margin: 6px 0 0; font-size: 28px; line-height: 1.4; font-weight: 650; }
.ld-auth .jq-card-sub { color: var(--ld-muted); font-size: 14px; line-height: 1.7; margin-bottom: 28px; }
.ld-auth .jq-card-sub a { margin-left: 5px; font-weight: 600; }
.ld-auth .login-form, .ld-auth .form-main { width: 100%; }
.ld-auth .login-top { display: flex; gap: 4px; padding: 4px; margin: 0 0 24px; width: 100%; border-radius: 9px; background: #f0f0f2; }
.ld-auth .login-top > div { flex: 1; min-height: 42px; padding: 10px 12px; border-radius: 6px; color: var(--ld-muted); cursor: pointer; text-align: center; font-size: 14px; line-height: 22px; }
.ld-auth .login-top > .active { color: var(--ld-ink); background: #fff; font-weight: 600; box-shadow: 0 1px 4px #1d1d1f16; }
.ld-auth .form-item { margin: 0 0 20px; width: 100%; }
.ld-auth .ld-field-label { display: block; margin: 0 0 7px; color: var(--ld-ink); font-size: 13px; font-weight: 550; line-height: 20px; }
.ld-auth .el-input, .ld-auth .el-select { font-size: 16px; width: 100%; }
.ld-auth .el-input__inner, .ld-auth .el-textarea__inner { height: 48px; padding: 0 14px; border: 1px solid #b7b7bd; border-radius: 8px; color: var(--ld-ink); background: #fff; font: inherit; box-shadow: none; }
.ld-auth .el-input__inner::placeholder, .ld-auth .el-textarea__inner::placeholder { color: #6e6e73; opacity: 1; }
.ld-auth .el-input__inner:focus, .ld-auth .el-textarea__inner:focus { border-color: var(--ld-accent); box-shadow: 0 0 0 3px #0066cc15; }
.ld-auth .el-input__icon { line-height: 48px; }
.ld-auth .el-input--suffix .el-input__inner { padding-right: 48px; }
.ld-auth .el-input__suffix .el-icon-view { width: 44px; cursor: pointer; }
.ld-auth .el-textarea__inner { padding-top: 10px; min-height: 96px; }
.ld-auth .el-input-group { display: inline-table; }
.ld-auth .el-input-group__prepend { width: 96px; background: #f5f5f7; border-color: #b7b7bd; border-radius: 8px 0 0 8px; color: var(--ld-ink); padding: 0 12px; }
.ld-auth .el-input-group__prepend .el-select { width: 70px; margin: 0; }
.ld-auth .el-input-group__prepend .el-input__inner { border: 0; background: transparent; padding: 0 22px 0 0; }
.ld-auth .el-input-group--prepend > .el-input__inner { border-radius: 0 8px 8px 0; }
.ld-auth .code-item { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.ld-auth .code-item .ld-field-label { flex: 0 0 100%; margin-bottom: -3px; }
.ld-auth .code-item > .el-input { flex: 1 1 0; width: 0; min-width: 0; }
.ld-auth .code-item .code-btn { flex: 0 0 auto; min-width: 112px; max-width: 48%; margin: 0; height: 48px; padding: 0 10px; font-size: 13px; color: var(--ld-accent); border: 1px solid #b7b7bd; background: #fff; border-radius: 8px; }
.ld-auth .el-button { min-height: 44px; padding: 12px 18px; font: 500 14px/20px -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; border-radius: 12px; box-shadow: none; transition: background 180ms ease, border-color 180ms ease; }
.ld-auth .el-button--primary, .ld-auth .login-btn { background: var(--ld-accent); border-color: var(--ld-accent); color: #fff; }
.ld-auth .el-button--primary:hover { background: #0058b0; border-color: #0058b0; }
.ld-auth .el-button--primary.is-disabled { background: #e5e5ea; border-color: #e5e5ea; color: #626268; }
.ld-auth .code-item .code-btn:not(.is-disabled):is(:hover, :focus-visible) { color: var(--ld-accent); background: #edf4fc; border-color: var(--ld-accent); }
.ld-auth .login-btn { width: 100%; min-height: 48px; font-size: 16px; border-radius: 999px; }
.ld-auth .pass-btn { width: 100%; min-height: 46px; margin: 12px 0 0; background: #fff; border: 1px solid #b7b7bd; color: var(--ld-ink); }
.ld-auth .rember-item { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ld-auth .jq-agreement, .ld-auth .read-item { display: flex; align-items: flex-start; gap: 8px; }
.ld-auth .jq-agreement { flex: 1 1 230px; }
.ld-auth .read-text, .ld-auth .el-checkbox__label { color: var(--ld-muted); font-size: 12px; line-height: 1.9; white-space: normal; }
.ld-auth .el-checkbox { margin-right: 0; font-size: 14px; white-space: normal; }
.ld-auth .el-checkbox__inner { width: 16px; height: 16px; border: 1px solid #8c8c94; border-radius: 4px; }
.ld-auth .el-checkbox__input.is-checked .el-checkbox__inner { background: var(--ld-accent); border-color: var(--ld-accent); }
.ld-auth .el-checkbox__inner::after { left: 5px; top: 2px; }
.ld-auth .jq-forget { display: inline-block; padding: 1px 0 8px; font-size: 12px; white-space: nowrap; }
.ld-auth .el-alert { padding: 12px; border-radius: 8px; }
.ld-auth .el-alert__title { font-size: 13px; line-height: 1.6; }
.ld-auth .el-alert--error.is-light { color: #9f2525; background: #fff0f0; }
.ld-auth .custom-form .el-form-item__label { color: var(--ld-ink); font-size: 13px; padding-bottom: 4px; }
.ld-auth .empty-input { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.ld-auth .line-item { margin-top: 24px; }
.ld-auth .line-item .el-divider { background: var(--ld-line); }
.ld-auth .el-divider__text { background: #fff; color: var(--ld-muted); font-size: 12px; }
.ld-auth .login-type { display: flex; justify-content: center; gap: 16px; }
.ld-auth .oauth-item { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ld-line); border-radius: 50%; cursor: pointer; }
.ld-auth .oauth-img { width: 24px; height: 24px; object-fit: contain; }
.ld-auth .jq-qr-toggle { border: 1px solid var(--ld-line); background: #fff; color: var(--ld-accent); padding: 10px; min-height: 44px; border-radius: 8px; font-size: 12px; cursor: pointer; }
.ld-auth .qr-box { text-align: center; }
.ld-auth .qr-box-img { position: relative; display: grid; place-items: center; width: 240px; min-height: 240px; margin: 24px auto; border: 1px solid var(--ld-line); border-radius: 12px; }
.ld-auth .qr-box-img img { width: 220px; height: 220px; object-fit: contain; }
.ld-auth .qr-expire-time { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; background: #ffffffed; color: var(--ld-ink); cursor: pointer; }
.ld-auth .qr-box-tips, .ld-auth .qr-box-select-account-title { color: var(--ld-muted); font-size: 14px; margin: 16px 0; }
.ld-auth .qr-box-back { color: var(--ld-accent); cursor: pointer; margin-bottom: 20px; }
.ld-auth .el-dialog { max-width: calc(100vw - 32px); border-radius: 12px; }
.ld-auth .el-dialog__title { font-size: 18px; color: var(--ld-ink); }
.ld-auth .el-dialog__body { font-size: 14px; color: var(--ld-ink); }
.ld-auth .el-loading-mask { background-color: #fffffff2; }
.ld-auth #mainLoading { position: fixed; z-index: 2000; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--ld-paper); }
.ld-auth #mainLoading::before, .ld-auth #mainLoading::after { content: none; }
.ld-auth #mainLoading .ddr { display: block; position: static; float: none; margin: 0; width: 7px; height: 7px; min-height: 0; background: #b95127; border-radius: 50%; animation: ld-auth-loading 1.1s ease-in-out infinite; }
.ld-auth #mainLoading .ddr2 { animation-delay: .1s; }
.ld-auth #mainLoading .ddr3 { animation-delay: .2s; }
.ld-auth #mainLoading .ddr4 { animation-delay: .3s; }
.ld-auth #mainLoading .ddr5 { animation-delay: .4s; }
.ld-auth .ld-config-error { margin-top: 24px; padding: 16px; background: #f5f5f7; color: #1d1d1f; font-size: 14px; border-radius: 8px; }
.ld-auth .ld-config-error button { min-height: 44px; margin-top: 8px; border: 1px solid #0066cc; border-radius: 6px; background: #fff; color: #1d1d1f; padding: 8px 16px; cursor: pointer; }
@keyframes ld-auth-loading { 0%, 70%, 100% { transform: translateY(0); opacity: .5; } 35% { transform: translateY(-6px); opacity: 1; } }
@media (max-width: 1000px) {
  .ld-auth :is(.jq-login-shell, .jq-register-shell, .ld-forget-shell) { grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); gap: 36px; }
  .ld-auth :is(.jq-login-aside, .jq-register-aside) { padding: 24px 0; }
  .ld-auth :is(.jq-login-card, .jq-register-card) { padding: 36px 28px; }
  .ld-auth .jq-aside-grid { gap: 12px; }
}
@media (max-width: 760px) {
  .ld-auth .ld-auth-header { width: calc(100% - 40px); min-height: 76px; gap: 12px; }
  .ld-auth .ld-auth-brand img { width: 145px; height: 42px; }
  .ld-auth :is(#login, #regist, #forget) { padding: 0 20px 32px; }
  .ld-auth :is(.jq-login-shell, .jq-register-shell, .ld-forget-shell) { display: block; min-height: 0; margin-top: 12px; }
  .ld-auth :is(.jq-login-aside, .jq-register-aside) { display: none; }
  .ld-auth .jq-brand-pill, .ld-auth .jq-aside-grid, .ld-auth .ld-auth-symbol { display: none; }
  .ld-auth :is(.jq-login-aside, .jq-register-aside) h1 { margin: 0 0 12px; font-size: 30px; letter-spacing: -.8px; }
  .ld-auth :is(.jq-login-aside, .jq-register-aside) h1 br { display: none; }
  .ld-auth :is(.jq-login-aside, .jq-register-aside) p { max-width: none; font-size: 14px; line-height: 1.8; }
  .ld-auth :is(.jq-login-card, .jq-register-card) { padding: 28px 24px; border-radius: 20px; }
  .ld-auth .jq-card-head h2 { font-size: 24px; }
  .ld-auth .jq-card-sub { margin-bottom: 24px; }
  .ld-auth .login-top > div { min-height: 44px; }
  .ld-auth .form-item { margin-bottom: 18px; }
  .ld-auth .ld-auth-home { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ld-auth *, .ld-auth *::before, .ld-auth *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
