.startup-screen {
  position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; flex-direction:column;
  gap:30px; background:#182431; color:#f4f6f8; font-family:"Segoe UI",system-ui,sans-serif;
  transition:opacity 180ms ease;
}
.startup-brand { display:flex; align-items:center; gap:18px; max-width:calc(100% - 40px); }
.startup-brand img { object-fit:contain; flex:none; }
.startup-brand strong { font-size:21px; line-height:1.3; font-weight:500; max-width:220px; }
.startup-progress { width:112px; height:3px; overflow:hidden; background:#ffffff1f; border-radius:3px; }
.startup-progress i { display:block; width:36%; height:100%; background:#78baf1; animation:startup-progress 1.1s ease-in-out infinite; border-radius:3px; }
.startup-finished { opacity:0; pointer-events:none; }
.workspace-embedded .startup-screen { display:none; }
@keyframes startup-progress { from { transform:translateX(-105%); } to { transform:translateX(390%); } }
@media(prefers-reduced-motion:reduce) { .startup-progress i { animation:none; width:100%; } .startup-screen { transition:none; } }
body .auth {
  min-height:100dvh; box-sizing:border-box; display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  align-items:stretch; gap:0; padding:0; background:#f3f4f6; color:#202428; font-family:"Segoe UI",system-ui,sans-serif;
}
.auth .auth-brand {
  position:relative; isolation:isolate; overflow:hidden;
  width:100%; min-height:100dvh; display:flex; align-items:center; justify-content:center;
  padding:clamp(28px,5vw,72px); margin:0; background:#142638; border:0; color:#f6f7f9;
}
.auth-wordmark { display:flex; align-items:center; gap:24px; max-width:480px; padding-block:28px; border-block:1px solid #bca16a45; }
.auth .auth-wordmark img { width:116px; height:116px; flex:none; margin:0; object-fit:contain; }
.auth-wordmark > span { font-size:clamp(23px,2.3vw,32px); line-height:1.2; letter-spacing:-.025em; }
.auth-wordmark strong { display:block; font-weight:700; }
.auth-wordmark small { display:block; color:#d0bc8a; font-size:14px; font-weight:400; line-height:1.4; letter-spacing:.02em; margin-top:12px; }
.auth .auth-form-wrap { width:100%; padding:44px clamp(28px,5vw,72px); background:none; display:flex; align-items:center; justify-content:center; }
.auth .auth-card { width:100%; max-width:340px; }
.auth .auth-card h1 { font:400 27px/1.3 "Segoe UI",system-ui,sans-serif; color:inherit; margin:0 0 26px; }
.auth .auth-card form { display:grid; gap:15px; margin:0; }
.auth .auth-card label { color:inherit; font-size:13px; font-weight:400; }
.auth .auth-card :is(input,textarea) {
  background:#ffffffd9; color:#202428; border:1px solid #aeb5bd; border-bottom:2px solid #8b949e;
  border-radius:4px; box-shadow:none; min-height:42px; padding:8px 10px; margin:6px 0 0;
}
.auth .auth-card :is(input,textarea):focus-visible { outline:0; border-bottom-color:#0067b8; box-shadow:0 0 0 1px #0067b8; }
.auth .auth-card .primary {
  --button-bg:#0067b8; --button-line:#0067b8; --button-hover:#005da6; --button-hover-line:#005da6; --button-ink:#fff;
  border-radius:4px; min-height:42px; box-shadow:none; font-weight:500; margin-top:4px;
}
.auth .auth-card .error:empty { display:none; }
.auth .auth-card .footer-note { color:#5d656f; font-size:12px; line-height:1.5; margin:18px 0 0; }
.auth .auth-card .sub { color:#5d656f; font-size:14px; }
.auth-access-note { margin:24px 0 0; padding-top:19px; border-top:1px solid #d2d5da; font-size:13px; line-height:1.6; color:#5d656f; }
.auth-access-note strong { display:block; font-weight:500; color:#303a44; }
.auth-access-note span { display:block; }
:root[data-theme="dark"] .auth { background:#202124; color:#f1f1f3; }
:root[data-theme="dark"] .auth .auth-brand { background:#142638; color:#f6f7f9; }
:root[data-theme="dark"] .auth .auth-card :is(input,textarea) { background:#2d2e31; color:#f1f1f3; border-color:#5d5f64; border-bottom-color:#a2a5ab; }
:root[data-theme="dark"] .auth .auth-card :is(input,textarea):focus-visible { border-bottom-color:#77bdf4; box-shadow:0 0 0 1px #77bdf4; }
:root[data-theme="dark"] .auth .auth-card :is(.footer-note,.sub) { color:#b9bbc2; }
:root[data-theme="dark"] .auth .auth-card .primary { --button-bg:#70b9f0; --button-line:#70b9f0; --button-ink:#102334; --button-hover:#89c8f5; --button-hover-line:#89c8f5; }
:root[data-theme="dark"] .auth-access-note { color:#b9bbc2; border-color:#484a4f; }
:root[data-theme="dark"] .auth-access-note strong { color:#e3e5e8; }
@media(max-width:760px) {
  body .auth { grid-template-columns:minmax(0,1fr); grid-template-rows:auto 1fr; }
  .auth .auth-brand { min-height:0; padding:32px 24px; }
  .auth .auth-form-wrap { padding:34px 24px; align-items:flex-start; }
  .auth .auth-wordmark img { width:72px; height:72px; }
  .auth-wordmark { width:340px; gap:16px; }
  .auth-wordmark > span { font-size:23px; }
  .auth-wordmark small { font-size:13px; margin-top:7px; }
}
@media(max-width:480px) {
  .startup-brand { gap:12px; }
  .startup-brand img { width:56px; height:56px; }
  .startup-brand strong { font-size:19px; }
}
