:root {
  color-scheme: light;
  --ink: #132632;
  --muted: #647580;
  --line: #dbe4e8;
  --teal: #0a8f82;
  --danger: #c84646;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: #f7f9fa; color: var(--ink); }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.login-shell { display: grid; grid-template-columns: minmax(520px, 1.08fr) minmax(500px, .92fr); min-height: 100vh; overflow: hidden; }
.brand-panel { position: relative; display: flex; flex-direction: column; min-height: 100vh; padding: clamp(2rem, 4vw, 4.5rem) clamp(2.5rem, 6vw, 7rem); overflow: hidden; isolation: isolate; color: white; background: linear-gradient(145deg, #061a27 0%, #0a2a39 56%, #0b3541 100%); }
.brand-panel::before { content: ""; position: absolute; inset: 0; z-index: -3; opacity: .28; background-image: linear-gradient(rgb(99 216 201 / 8%) 1px, transparent 1px), linear-gradient(90deg, rgb(99 216 201 / 8%) 1px, transparent 1px); background-size: 68px 68px; mask-image: linear-gradient(to bottom right, black, transparent 72%); }
.ambient { position: absolute; z-index: -2; width: 34rem; height: 34rem; border-radius: 50%; filter: blur(25px); opacity: .24; pointer-events: none; }
.ambient-one { top: -20rem; right: -16rem; background: #22d3bd; }
.ambient-two { bottom: -24rem; left: -16rem; background: #1c9bb1; }

.brand { display: inline-flex; align-items: center; align-self: flex-start; gap: .8rem; color: white; font-size: 1.15rem; letter-spacing: -.02em; text-decoration: none; animation: enter-up .55s ease-out both; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 13px; background: linear-gradient(145deg, #37d4c2, #0b9c90); box-shadow: 0 10px 35px rgb(22 207 186 / 20%), inset 0 1px rgb(255 255 255 / 35%); }
.brand-mark svg { width: 26px; height: 26px; fill: #073031; }
.brand strong { color: #71e2d5; font-weight: 650; }

.brand-copy { margin: clamp(5rem, 12vh, 9.5rem) 0 0; max-width: 640px; animation: enter-up .65s .08s ease-out both; }
.eyebrow { display: inline-flex; align-items: center; gap: .65rem; margin-bottom: 1.3rem; color: #8fddd5; font-size: .72rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow i { width: 24px; height: 1px; background: #4cd2c2; box-shadow: 0 0 10px #4cd2c2; }
.brand-copy h1 { margin: 0; font-size: clamp(2.8rem, 5vw, 5.2rem); font-weight: 640; letter-spacing: -.065em; line-height: .98; }
.brand-copy h1 span { color: #5ed6c9; }
.brand-copy p { max-width: 520px; margin: 1.8rem 0 0; color: #adc3cb; font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.75; }

.data-visual { position: relative; flex: 1; min-height: 250px; max-height: 340px; margin: 2rem -2rem 0; animation: enter-fade .8s .2s ease-out both; }
.visual-grid { position: absolute; inset: 0; opacity: .42; background-image: radial-gradient(circle, rgb(109 225 212 / 35%) 1px, transparent 1.5px); background-size: 25px 25px; mask-image: radial-gradient(ellipse at center, black 0, transparent 66%); }
.connections { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.connection-line { fill: none; stroke-linecap: round; stroke-width: 1.3; }
.line-one { stroke: #3ac9b8; opacity: .58; stroke-dasharray: 5 7; animation: dash-flow 14s linear infinite; }
.line-two { stroke: #376e7e; opacity: .72; stroke-dasharray: 2 8; animation: dash-flow 18s linear infinite reverse; }
.data-node { position: absolute; width: 13px; height: 13px; border: 1px solid #5ce0d0; border-radius: 50%; background: #082735; box-shadow: 0 0 0 5px rgb(41 194 178 / 10%), 0 0 20px rgb(73 223 206 / 45%); }
.data-node i { position: absolute; inset: 3px; border-radius: inherit; background: #6ce6d8; }
.node-one { left: 20%; top: 50%; }
.node-two { left: 44%; top: 33%; }
.node-three { right: 24%; top: 54%; }
.node-four { right: 8%; top: 15%; }
.data-card { position: absolute; display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border: 1px solid rgb(139 224 215 / 17%); border-radius: 15px; background: rgb(10 43 56 / 80%); box-shadow: 0 16px 50px rgb(0 0 0 / 20%); backdrop-filter: blur(14px); }
.data-card-main { left: 7%; bottom: 8%; min-width: 310px; }
.data-card-small { right: 3%; top: 20%; }
.data-card span { display: grid; }
.data-card small { color: #819ba5; font-size: .7rem; }
.data-card strong { margin-top: .12rem; color: #d7e9ec; font-size: .8rem; }
.data-card-icon, .pulse-icon { place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #59d7c9; background: rgb(47 198 182 / 12%); }
.data-card svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.status-dot { display: inline-flex !important; align-items: center; grid-auto-flow: column; gap: .35rem; margin-left: auto; color: #78d7cb; font-size: .67rem; }
.status-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #42d7c5; box-shadow: 0 0 0 4px rgb(66 215 197 / 10%); }
.brand-footnote { display: flex; align-items: center; gap: .55rem; margin: auto 0 0; color: #78959f; font-size: .78rem; }
.brand-footnote span { color: #44caba; }

.auth-panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 3rem clamp(2.5rem, 6vw, 7rem); background: radial-gradient(circle at 100% 0, rgb(32 181 165 / 7%), transparent 28%), #f9fbfb; }
.auth-panel::before { content: ""; position: absolute; top: 0; left: 0; width: 1px; height: 100%; background: linear-gradient(transparent, #dbe7e8 18%, #dbe7e8 82%, transparent); }
.auth-card { width: min(100%, 450px); animation: enter-up .62s .1s ease-out both; }
.mobile-brand { display: none; }
.auth-heading { margin-bottom: 2.1rem; }
.welcome-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 1.6rem; border: 1px solid #cee7e4; border-radius: 14px; color: var(--teal); background: linear-gradient(145deg, #f0fbf9, #e4f5f2); box-shadow: 0 10px 30px rgb(16 130 118 / 9%); }
.welcome-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; }
.auth-heading h2 { margin: 0; color: #102733; font-size: clamp(2rem, 3vw, 2.65rem); font-weight: 650; letter-spacing: -.05em; }
.auth-heading p { margin: .6rem 0 0; color: var(--muted); font-size: .98rem; }
.login-form { display: grid; gap: 1.2rem; }
.field-group { display: grid; gap: .48rem; }
.field-group label { color: #263b46; font-size: .82rem; font-weight: 680; }
.input-shell { position: relative; }
.input-shell input { width: 100%; height: 53px; padding: 0 3rem 0 2.9rem; border: 1px solid var(--line); border-radius: 12px; outline: none; color: #152b36; background: white; box-shadow: 0 2px 4px rgb(20 50 64 / 2%); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.input-shell input::placeholder { color: #9aa8ae; }
.input-shell input:hover { border-color: #b9c9ce; }
.input-shell input:focus { border-color: #1aa394; box-shadow: 0 0 0 4px rgb(26 163 148 / 11%), 0 7px 22px rgb(20 70 75 / 7%); }
.field-icon { position: absolute; z-index: 1; top: 50%; left: 1rem; width: 18px; transform: translateY(-50%); fill: none; stroke: #7e9098; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; pointer-events: none; transition: stroke .16s ease; }
.input-shell:focus-within .field-icon { stroke: var(--teal); }
.valid-icon { display: none; position: absolute; top: 50%; right: 1rem; width: 18px; transform: translateY(-50%); fill: none; stroke: var(--teal); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.input-shell input:not(:placeholder-shown):valid + .valid-icon { display: block; }
.input-shell.has-error input, .input-shell input[aria-invalid="true"] { border-color: #d66464; box-shadow: 0 0 0 4px rgb(200 70 70 / 8%); }
.input-shell.has-error .field-icon { stroke: var(--danger); }
.field-hint { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.field-error { color: var(--danger); font-size: .76rem; }
.password-toggle { position: absolute; top: 50%; right: .65rem; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 8px; color: #71848d; background: transparent; cursor: pointer; }
.password-toggle:hover { color: var(--teal); background: #eff8f7; }
.password-toggle svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.password-toggle .eye-closed, .password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: -.1rem; }
.check-control { position: relative; display: inline-flex; align-items: center; gap: .55rem; color: #536771; font-size: .8rem; cursor: pointer; }
.check-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check-box { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #bfccd0; border-radius: 5px; background: white; transition: .15s ease; }
.check-box svg { width: 13px; fill: none; stroke: white; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; opacity: 0; transform: scale(.5); transition: .15s ease; }
.check-control input:checked + .check-box { border-color: var(--teal); background: var(--teal); }
.check-control input:checked + .check-box svg { opacity: 1; transform: scale(1); }
.check-control input:focus-visible + .check-box { outline: 3px solid rgb(10 143 130 / 18%); outline-offset: 2px; }
.text-link, .create-account a { padding: .15rem; color: #087b71; font-size: .8rem; font-weight: 680; text-decoration: none; cursor: pointer; }
.text-link:hover, .create-account a:hover { color: #055f58; text-decoration: underline; }
.submit-button { position: relative; display: grid; place-items: center; width: 100%; height: 54px; margin-top: .25rem; overflow: hidden; border: 0; border-radius: 12px; color: white; background: linear-gradient(115deg, #087b71, #0ba293); box-shadow: 0 12px 28px rgb(8 127 115 / 20%), inset 0 1px rgb(255 255 255 / 18%); font-weight: 700; cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, filter .14s ease; }
.submit-button::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 25%, rgb(255 255 255 / 16%) 48%, transparent 70%); transform: translateX(-120%); transition: transform .5s ease; }
.submit-button:hover { box-shadow: 0 15px 32px rgb(8 127 115 / 27%); filter: saturate(1.08); transform: translateY(-1px); }
.submit-button:hover::before { transform: translateX(120%); }
.submit-button:active { box-shadow: 0 7px 18px rgb(8 127 115 / 19%); transform: translateY(1px); }
.submit-button:disabled { cursor: wait; filter: saturate(.8); transform: none; }
.button-label, .button-loading { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: .55rem; }
.button-label svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; transition: transform .15s ease; }
.submit-button:hover .button-label svg { transform: translateX(3px); }
.button-loading { visibility: hidden; opacity: 0; }
.button-loading i { width: 17px; height: 17px; border: 2px solid rgb(255 255 255 / 40%); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.submit-button.is-loading .button-label { visibility: hidden; opacity: 0; }
.submit-button.is-loading .button-loading { visibility: visible; opacity: 1; }
.form-alert { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; margin: -1rem 0 1.2rem; padding: .8rem .9rem; border: 1px solid #f0c9c6; border-radius: 10px; color: #873b3b; background: #fff5f4; font-size: .78rem; line-height: 1.45; }
.form-alert svg { width: 19px; fill: none; stroke: #bd5151; stroke-linecap: round; stroke-width: 1.8; }
.form-alert strong { display: block; }
.access-help { margin: 1rem 0 0; padding: .8rem .9rem; border: 1px solid #cbe3e0; border-radius: 10px; color: #49636c; background: #f0f8f7; font-size: .78rem; line-height: 1.5; }
.create-account { margin: 1.7rem 0 0; color: #6c7d85; font-size: .8rem; text-align: center; }
.trust-note { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: 2.3rem; padding-top: 1.5rem; border-top: 1px solid #e6ecee; color: #8b9ba2; font-size: .72rem; }
.trust-note svg { width: 16px; fill: none; stroke: #729089; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.auth-panel footer { position: absolute; bottom: 1.8rem; color: #9aa7ac; font-size: .68rem; }

:focus-visible { outline: 3px solid rgb(24 171 156 / 25%); outline-offset: 3px; }
@keyframes enter-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes enter-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dash-flow { to { stroke-dashoffset: -120; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
  .login-shell { grid-template-columns: minmax(420px, .9fr) minmax(480px, 1.1fr); }
  .brand-panel { padding-inline: 3rem; }
  .brand-copy h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
  .data-card-small { display: none; }
}

@media (max-width: 820px) {
  .login-shell { display: block; }
  .brand-panel { display: none; }
  .auth-panel { min-height: 100svh; padding: 7rem 1.5rem 5rem; }
  .auth-panel::before { display: none; }
  .mobile-brand { position: absolute; top: 1.6rem; left: 1.5rem; display: flex; align-items: center; gap: .7rem; color: #17313b; font-size: 1rem; }
  .mobile-brand .brand-mark { width: 36px; height: 36px; }
  .mobile-brand .brand-mark svg { width: 22px; }
  .mobile-brand strong { color: var(--teal); }
  .auth-panel footer { position: static; margin-top: 3rem; }
}

@media (max-width: 460px) {
  .auth-panel { justify-content: flex-start; padding-inline: 1.1rem; }
  .auth-heading { margin-bottom: 1.7rem; }
  .auth-heading h2 { font-size: 2rem; }
  .welcome-icon { display: none; }
  .form-options { align-items: flex-start; }
}

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