:root { color-scheme: light; --brand: #1765c7; --ink: #202b38; --muted: #737e8b; }
* { box-sizing: border-box; letter-spacing: 0; }
.theme-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 100vh; min-height: 100dvh; margin: 0; color: var(--ink); background: #fff; font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif; }
.theme-navbar { display: flex; align-items: center; justify-content: center; padding: 56px 40px; background: #124a91; }
.theme-brand { width: min(320px, 100%); }
.theme-navbar__logo { display: block; width: 92px; height: 92px; object-fit: contain; filter: brightness(0) invert(1); }
.theme-brand-name { margin: 32px 0 14px; color: #fff; font-size: 38px; line-height: 1.3; font-weight: 600; }
.theme-brand-caption { margin: 0; padding-top: 20px; border-top: 1px solid #ffffff40; color: #e1edff; font-size: 16px; line-height: 1.5; }
.dex-container { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; max-width: none; margin: 0; padding: 64px 48px; text-align: left; }
.theme-panel { width: 100%; max-width: 360px; padding: 0; }
.theme-eyebrow { margin: 0 0 12px; color: var(--brand); font-size: 12px; font-weight: 700; }
.theme-heading { margin: 0; color: var(--ink); font-size: 28px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.theme-description { margin: 12px 0 40px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.theme-form-row { display: grid; gap: 10px; margin: 0 0 24px; }
.theme-form-label { display: block; width: auto; margin: 0; color: #374552; font-size: 13px; font-weight: 600; text-align: left; }
.theme-form-input { display: block; width: 100%; min-width: 0; height: 48px; margin: 0; padding: 0 14px; border: 1px solid #ccd5dc; border-radius: 6px; color: var(--ink); background: #fff; font: inherit; font-size: 16px; box-shadow: none; }
.theme-form-input::placeholder { color: #98a1aa; font-size: 14px; }
.theme-form-input:focus { outline: 2px solid #1765c7; outline-offset: 2px; border-color: #1765c7; box-shadow: none; }
.theme-password-toggle { display: flex; align-items: center; gap: 8px; width: fit-content; margin: -4px 0 28px; color: #647180; font-size: 12px; cursor: pointer; }
.theme-password-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.dex-btn { display: block; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 6px; box-shadow: none; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.theme-btn-provider, .theme-btn--primary { min-width: 0; border: 1px solid var(--brand); color: #fff; background: var(--brand); }
.theme-btn-provider:hover, .theme-btn--primary:hover { color: #fff; background: #1254a8; }
.dex-btn:disabled { opacity: .65; cursor: wait; }
.dex-btn:focus-visible, .theme-link-back:focus-visible, .theme-password-toggle input:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.dex-btn-icon { display: none; }
.dex-btn-text { display: block; line-height: 24px; }
.dex-error-box { width: 100%; max-width: none; margin: 0 0 20px; padding: 12px; border: 1px solid #efcfcb; border-radius: 6px; background: #fff3f1; color: #ac3529; text-align: left; font-size: 13px; line-height: 1.6; }
.theme-link-back { display: inline-block; margin-top: 20px; color: var(--brand); font-size: 13px; text-decoration: none; }
@media (max-width: 640px) {
  .theme-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .theme-navbar { padding: 32px 28px; }
  .theme-brand { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; width: 360px; max-width: 100%; align-items: center; }
  .theme-navbar__logo { width: 48px; height: 48px; grid-row: 1 / 3; }
  .theme-brand-name { margin: 0; font-size: 23px; }
  .theme-brand-caption { margin-top: 5px; padding: 0; border: 0; font-size: 12px; }
  .dex-container { align-items: flex-start; padding: 44px 28px; }
}
