html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

[data-pencil-name="品牌区域"],
[data-pencil-name="登录卡片"],
[data-pencil-name="版权信息"] {
  left: 50% !important;
  transform: translateX(-50%);
}

[data-pencil-name="登录页面"] {
  min-height: 100vh !important;
  width: 100vw !important;
}

.login-runtime-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #1a2332;
  background: transparent;
  font: 400 14px/1.4 Inter, system-ui, sans-serif;
}

.login-runtime-input[type="password"] { letter-spacing: .08em; }
.login-runtime-input::placeholder { color: #94a3b8; }
.login-runtime-focus { outline: 2px solid #2563eb !important; outline-offset: -1px !important; }
.login-runtime-action { cursor: pointer; }
.login-runtime-action:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.login-runtime-password-toggle { cursor: pointer; }
.login-runtime-feedback { margin: -10px 0 0; min-height: 20px; color: #b91c1c; font: 500 13px/1.5 Inter, system-ui, sans-serif; }
.login-runtime-feedback.is-success { color: #047857; }
.login-runtime-unchecked { background: #fff !important; outline: 1px solid #94a3b8 !important; }
.login-runtime-unchecked svg { display: none; }
.login-runtime-modal-root { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.login-runtime-modal-root:not(:empty) { pointer-events: auto; }
.login-runtime-backdrop { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(8, 17, 38, .72); backdrop-filter: blur(5px); }
.login-runtime-modal { width: min(560px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow: auto; padding: 28px; border: 1px solid #bfdbfe; border-radius: 16px; background: #fff; box-shadow: 0 24px 64px rgba(2, 6, 23, .34); color: #0f172a; }
.login-runtime-modal h2 { margin: 0; font: 700 22px/1.3 Inter, system-ui, sans-serif; }
.login-runtime-modal > p { margin: 8px 0 0; color: #475569; font: 400 14px/1.6 Inter, system-ui, sans-serif; }
.puzzle-scene { position: relative; height: 220px; margin-top: 20px; overflow: hidden; border: 1px solid #bfdbfe; border-radius: 10px; background-color: #e2e8f0; background-image: var(--captcha-image); background-position: center; background-size: var(--captcha-width) var(--captcha-height); }
.puzzle-scene::after { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(15, 23, 42, .1), transparent 58%); content: ""; pointer-events: none; }
.puzzle-hole, .puzzle-piece { position: absolute; top: var(--puzzle-y); z-index: 2; width: 48px; height: 48px; clip-path: polygon(0 0,35% 0,40% 10%,40% 20%,53% 25%,64% 20%,64% 10%,70% 0,100% 0,100% 34%,89% 41%,82% 52%,89% 64%,100% 68%,100% 100%,69% 100%,62% 89%,51% 84%,40% 90%,35% 100%,0 100%,0 69%,11% 62%,17% 51%,11% 40%,0 34%); }
.puzzle-hole { left: var(--puzzle-target); border: 1px dashed #1d4ed8; background: rgba(30, 58, 138, .32); box-shadow: inset 0 0 0 2px rgba(15, 23, 42, .34); }
.puzzle-piece { left: 0; border: 1px solid #fff; background-image: var(--captcha-image); background-position: var(--piece-x) var(--piece-y); background-size: var(--captcha-width) var(--captcha-height); box-shadow: 0 3px 9px rgba(15, 23, 42, .4); transition: transform .03s linear; }
.puzzle-piece::after { position: absolute; inset: 4px; border: 1px solid rgba(255, 255, 255, .8); content: ""; }
.puzzle-status { min-height: 22px; margin: 14px 0 8px; color: #64748b; font: 500 13px/1.5 Inter, system-ui, sans-serif; }
.puzzle-status.is-error { color: #b91c1c; }
.puzzle-status.is-success { color: #047857; }
.puzzle-track { position: relative; height: 48px; overflow: hidden; border: 1px solid #bfdbfe; border-radius: 8px; background: #eff6ff; }
.puzzle-track > i { position: absolute; inset: 0 auto 0 0; width: 0; background: #bfdbfe; }
.puzzle-track::after { position: absolute; inset: 0; display: grid; place-items: center; color: #64748b; content: "拖动滑块完成拼图校验"; font: 500 13px/1 Inter, system-ui, sans-serif; pointer-events: none; }
.puzzle-thumb { position: relative; z-index: 2; display: grid; place-items: center; width: 48px; height: 100%; border: 0; border-radius: 7px; color: #fff; background: #2563eb; touch-action: none; cursor: grab; }
.puzzle-thumb:active { cursor: grabbing; }
.puzzle-thumb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.puzzle-output { display: block; min-height: 20px; margin-top: 9px; color: #64748b; font: 400 12px/1.5 Inter, system-ui, sans-serif; }
.puzzle-actions, .login-runtime-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.puzzle-actions button, .login-runtime-dialog-actions button { min-height: 38px; padding: 8px 14px; border: 1px solid #bfdbfe; border-radius: 8px; color: #1d4ed8; background: #fff; font: 600 13px/1.2 Inter, system-ui, sans-serif; cursor: pointer; }
.puzzle-actions button:hover, .login-runtime-dialog-actions button:hover { border-color: #2563eb; background: #eff6ff; }

@media (max-width: 1099px) {
  [data-pencil-name="登录页面"] { width: 100vw !important; min-height: 100vh !important; }
  [data-pencil-name="品牌区域"], [data-pencil-name="登录卡片"] { left: 50% !important; transform: translateX(-50%); }
  [data-pencil-name="登录卡片"] { width: min(400px, calc(100vw - 48px)) !important; }
  [data-pencil-name="版权信息"] { left: 50% !important; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; transform: translateX(-50%); }
  [data-pencil-name="装饰圆形2"] { left: auto !important; right: -60px !important; }
  [data-pencil-name="装饰点"] { left: auto !important; right: 48px !important; }
}

@media (max-width: 760px) {
  [data-pencil-name="登录页面"] { align-items: center !important; display: flex !important; flex-direction: column !important; gap: 24px !important; height: auto !important; min-height: 100vh !important; overflow: visible !important; padding: 56px 20px 36px !important; }
  [data-pencil-name="品牌区域"], [data-pencil-name="登录卡片"], [data-pencil-name="版权信息"] { position: relative !important; inset: auto !important; left: auto !important; top: auto !important; transform: none !important; }
  [data-pencil-name="品牌区域"] { width: 100% !important; align-items: center !important; }
  [data-pencil-name="平台名称"] { white-space: normal !important; text-align: center !important; }
  [data-pencil-name="平台副标题"] { white-space: normal !important; text-align: center !important; }
  [data-pencil-name="登录卡片"] { width: min(400px, 100%) !important; padding: 32px 24px !important; }
  [data-pencil-name="版权信息"] { max-width: 100%; white-space: normal !important; text-align: center !important; }
}

@media (max-width: 1000px) {
  [data-pencil-name="左侧导航栏"] { display: none !important; }
  [data-pencil-name="登录表单卡片"], [data-pencil-name="Login Form Card"] { left: auto !important; right: clamp(24px, 8vw, 100px) !important; width: min(420px, 42vw) !important; }
  [data-pencil-name="Left Brand Content"] { left: clamp(32px, 7vw, 100px) !important; width: min(52vw, 560px) !important; }
}

@media (max-width: 760px) {
  [data-pencil-name="登录页面"] { display: block !important; min-height: 100vh !important; height: auto !important; padding: 48px 20px !important; }
  [data-pencil-name="Left Brand Content"], [data-pencil-name="Login Form Card"] { position: relative !important; inset: auto !important; width: min(100%, 560px) !important; margin: 0 auto; }
  [data-pencil-name="Login Form Card"] { margin-top: 36px; }
  [data-pencil-name="Main Platform Name"] { white-space: normal !important; }
}
