:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #172235;
  background: #f6f8fb;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: #fff; }
a { -webkit-tap-highlight-color: rgba(23, 105, 224, .12); touch-action: manipulation; }

.login-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(400px, .92fr) minmax(520px, 1.08fr);
}

.brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(48px, env(safe-area-inset-top)) clamp(44px, 6vw, 96px) max(48px, env(safe-area-inset-bottom));
  color: #fff;
  background: #102a43;
}

.brand-panel::after {
  content: none;
}

.brand-mark, .mobile-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  letter-spacing: .08em;
}

.brand-mark > span, .mobile-brand > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  color: #0b2a55;
  background: #f7cc22;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark strong, .mobile-brand strong { font-size: 17px; }
.brand-copy { position: relative; z-index: 1; max-width: 570px; }
.eyebrow { margin: 0 0 20px; color: #5c7090; font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.brand-copy .eyebrow { color: #a9c5ee; }
.brand-copy h1 { max-width: 540px; margin: 0; font-size: clamp(38px, 3.5vw, 52px); line-height: 1.18; letter-spacing: -.04em; text-wrap: balance; }
.brand-copy > p:not(.eyebrow) { max-width: 500px; margin: 28px 0 0; color: #c4d5eb; font-size: 16px; line-height: 1.85; }
.brand-capabilities {
  max-width: 520px;
  margin-top: 38px;
  display: grid;
  border-top: 1px solid rgba(255,255,255,.16);
}
.brand-capabilities article {
  min-height: 52px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand-capabilities strong { color: #fff; font-size: 12px; }
.brand-capabilities span { color: #abc2df; font-size: 12px; }
.brand-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; color: #a8bedb; font-size: 12px; letter-spacing: .08em; }
.brand-footer span { width: 26px; height: 1px; background: #f7cc22; }

.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(48px, env(safe-area-inset-top)) clamp(28px, 6vw, 96px) max(28px, env(safe-area-inset-bottom));
  background: #fff;
}

.login-card { width: min(100%, 440px); }
.mobile-brand { display: none; color: #102d56; margin-bottom: 64px; }
.login-card h2 { margin: 0; font-size: 30px; line-height: 1.3; letter-spacing: -.025em; text-wrap: balance; }
.login-intro { margin: 13px 0 20px; color: #69778c; font-size: 15px; line-height: 1.7; }

.workspace-scope {
  min-height: 42px;
  margin-bottom: 14px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #5f6f86;
  background: #f7f9fc;
  border: 1px solid #e2e7ef;
  border-radius: 8px;
  font-size: 12px;
}
.workspace-scope span { color: #2457a6; font-weight: 700; letter-spacing: .04em; }
.workspace-scope strong { color: #536176; font-size: 12px; font-weight: 600; }

.login-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0 20px 0 22px;
  border-radius: 8px;
  color: #fff;
  background: #1769e0;
  box-shadow: 0 8px 22px rgba(23, 105, 224, .18);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.login-button:hover { background: #105cc8; box-shadow: 0 10px 26px rgba(23, 105, 224, .24); transform: translateY(-1px); }
.login-button:focus-visible { outline: 3px solid rgba(23, 105, 224, .24); outline-offset: 3px; }
.login-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.security-note {
  display: flex;
  gap: 13px;
  margin-top: 24px;
  padding: 17px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f9fbfd;
}

.security-note svg { flex: 0 0 auto; width: 21px; fill: none; stroke: #20705a; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.security-note div { display: flex; flex-direction: column; gap: 4px; }
.security-note strong { font-size: 13px; }
.security-note span { color: #758398; font-size: 12px; }
.login-help { margin: 22px 0 0; color: #8490a2; font-size: 12px; text-align: center; }
.login-panel footer { position: absolute; bottom: 22px; color: #9aa5b4; font-size: 11px; }

@media (max-width: 860px) {
  .login-shell { display: block; }
  .brand-panel { display: none; }
  .login-panel { min-height: 100dvh; padding: max(36px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
  .mobile-brand { display: flex; }
  .login-panel footer { position: static; margin-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 420px) {
  .login-panel { justify-content: flex-start; }
  .mobile-brand { margin: 10px 0 48px; }
  .login-card h2 { font-size: 26px; }
  .workspace-scope { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; padding-block: 9px; }
  .login-button { min-height: 54px; }
  .security-note { padding: 15px; }
}

@media (max-width: 860px) and (max-height: 650px) {
  .login-panel { justify-content: flex-start; padding: 24px 24px 20px; }
  .mobile-brand { margin: 0 0 28px; }
  .eyebrow { margin-bottom: 12px; }
  .login-intro { margin: 9px 0 14px; }
  .security-note { margin-top: 16px; }
  .login-help { margin-top: 16px; }
  .login-panel footer { margin-top: 28px; }
}
