:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
  --surface: #f5f7fc; --input: #fff; --text: #171c31; --label: #66728e;
  --muted: #7d89a5; --line: #dce3f1; --error: #b92248;
  color: var(--text); background: var(--surface);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #111a2e; --input: #1e2b45; --text: #f5f7ff; --label: #b1bfd9;
  --muted: #9cacc9; --line: #344160; --error: #ff8eac;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible { outline: 3px solid #75a7ff; outline-offset: 4px; }
.login-screen { min-height: 100svh; display: grid; grid-template-columns: 46.35% 53.65%; position: relative; overflow: hidden; }
.brand { display: flex; gap: 14px; align-items: center; font-size: 30px; font-weight: 700; letter-spacing: -.9px; line-height: 1.2; white-space: nowrap; }
.brand-logo { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; color: #fff; background: #1769f5; font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: 0; }
.data-panel { background: #1c2538; color: #fff; position: relative; min-height: 100svh; isolation: isolate; }
.hero-brand { position: absolute; left: 13.25%; top: 9.2%; z-index: 2; }
.data-panel h1 { position: absolute; top: 23.5%; left: 13.8%; margin: 0; font-size: clamp(36px, 3.85vw, 74px); line-height: 1.16; letter-spacing: -2.4px; font-weight: 700; z-index: 2; animation: form-in .85s both; }
.data-panel h1 span { color: #529cff; }
.graph-stage { position: absolute; left: 0; bottom: 13.5%; width: 100%; height: 54%; animation: graph-reveal 2.8s .15s both; overflow: hidden; will-change: clip-path; }
.graph-stage img { position: absolute; left: -1%; bottom: 0; width: 103%; height: auto; max-height: 100%; object-fit: contain; object-position: bottom; pointer-events: none; }
.graph-base { opacity: .9; animation: graph-breathe 8s ease-in-out infinite; }
.graph-highlight { filter: brightness(1.8); opacity: .85; animation: graph-signal 6s linear 2s infinite; clip-path: inset(0 100% 0 0); }
.motion-toggle { position: absolute; left: 13.25%; bottom: 26px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 0; border: 0; color: #a6b5cf; background: transparent; font-size: 12px; }
.motion-toggle:hover { color: #fff; }
.motion-toggle img { opacity: .8; }
.motion-paused .graph-stage, .motion-paused .graph-stage img { animation-play-state: paused; }
.form-stage { display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--text); padding: 140px 40px 80px; }
.login-form { width: min(100%, 432px); animation: form-in .7s .08s both; }
.form-brand { margin-bottom: 23px; }
.login-form h2 { font-size: 44px; line-height: 1.22; letter-spacing: -1.2px; margin: 0 0 10px; font-weight: 700; white-space: nowrap; }
.form-subtitle { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.5; }
.login-form form { margin-top: 38px; }
.login-form label { display: block; color: var(--label); font-size: 17px; line-height: 1.4; margin: 0 0 7px; }
.login-form input { width: 100%; height: 54px; background: var(--input); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; color: var(--text); font-size: 17px; transition: border-color .18s, box-shadow .18s; }
.login-form input::placeholder { color: #8591ad; opacity: 1; }
.login-form input:focus { border-color: #1769f5; box-shadow: 0 0 0 3px #1769f515; outline: 2px solid transparent; }
.login-form .password-label { margin-top: 24px; }
.password-field { position: relative; }
.password-field input { padding-right: 52px; }
.eye-toggle { position: absolute; right: 6px; top: 6px; width: 42px; height: 42px; border: 0; background: transparent; display: grid; place-items: center; border-radius: 8px; }
.eye-toggle:hover, .eye-toggle[aria-pressed="true"] { background: #1769f516; }
.sign-in { display: flex; justify-content: center; align-items: center; position: relative; background: #1769ff; color: #fff; border: 1px solid transparent; width: 100%; height: 54px; border-radius: 11px; margin-top: 28px; font-size: 18px; font-weight: 600; transition: background .2s, transform .2s, box-shadow .2s; }
.sign-in:hover:not(:disabled) { background: #095ae5; box-shadow: 0 8px 20px #1769f526; transform: translateY(-1px); }
.sign-in:active { transform: translateY(0); }
.sign-in:disabled { cursor: wait; opacity: .8; }
.enter-arrow { position: absolute; right: 22px; }
.form-help { color: var(--muted); text-align: center; line-height: 1.5; font-size: 15px; margin: 22px -12px 0; }
.form-error { color: var(--error); font-size: 14px; line-height: 1.5; margin: 12px 0 0; overflow-wrap: anywhere; }
.theme-toggle { position: absolute; top: 30px; right: 36px; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--input); display: grid; place-items: center; z-index: 3; }
:root[data-theme="dark"] .theme-toggle img { filter: brightness(1.6); }
@keyframes form-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes graph-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes graph-breathe { 0%, 100% { opacity: .75; transform: translateY(0); } 50% { opacity: .95; transform: translateY(-6px); } }
@keyframes graph-signal { 0% { clip-path: inset(0 100% 0 0); opacity: 0; } 8%, 85% { opacity: .9; } 50% { clip-path: inset(0 38% 0 42%); } 100% { clip-path: inset(0 0 0 100%); opacity: 0; } }
@media (min-width: 1600px) { .form-stage { padding-left: 110px; } }
@media (max-width: 1300px) {
  .brand { font-size: 25px; }
  .hero-brand, .motion-toggle { left: 10%; }
  .data-panel h1 { left: 10%; letter-spacing: -1.8px; }
  .login-form { max-width: 390px; }
  .login-form h2 { font-size: 34px; }
  .form-subtitle { font-size: 16px; }
  .form-stage { padding: 100px 35px 80px; }
}
@media (max-width: 760px) {
  .login-screen { grid-template-columns: 1fr; }
  .data-panel { min-height: 215px; height: 28svh; }
  .hero-brand { top: 24px; left: 25px; font-size: 21px; gap: 12px; }
  .hero-brand .brand-logo { width: 36px; height: 36px; border-radius: 10px; font-size: 22px; }
  .data-panel h1 { font-size: 33px; top: 96px; left: 25px; letter-spacing: -1px; }
  .graph-stage { width: 54%; height: 70%; left: auto; right: 0; bottom: 0; opacity: .5; }
  .motion-toggle { left: auto; right: 16px; bottom: 9px; padding: 5px; }
  .motion-toggle span { display: none; }
  .form-stage { padding: 40px 28px 54px; min-height: 72svh; }
  .login-form { width: 100%; max-width: 420px; }
  .form-brand { display: none; }
  .login-form h2 { font-size: clamp(25px, 7.5vw, 32px); white-space: normal; }
  .form-subtitle { font-size: 15px; }
  .login-form form { margin-top: 25px; }
  .login-form label { font-size: 15px; }
  .login-form input { font-size: 16px; }
  .theme-toggle { right: 20px; top: 24px; width: 40px; height: 40px; background: #f5f7fc; border-color: #52617b; }
  .form-help { font-size: 12px; margin-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .graph-stage { clip-path: none; will-change: auto; }
  .graph-highlight, .motion-toggle { display: none; }
}
