:root {
  color-scheme: light;
  --ink: #10282d;
  --muted: #69797d;
  --deep: #092f37;
  --deep-2: #0e4148;
  --teal: #0c706d;
  --mint: #a8e3cf;
  --sand: #e4ba73;
  --line: #dbe4e3;
  --surface: #f7faf9;
  --white: #ffffff;
  --danger: #b93434;
  --shadow: 0 24px 70px rgba(13, 48, 53, 0.12);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--surface); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.02fr) minmax(520px, 0.98fr); }

.brand-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(32px, 4vw, 62px);
  color: var(--white);
  background:
    radial-gradient(circle at 70% 34%, rgba(38, 129, 123, 0.5), transparent 33%),
    linear-gradient(145deg, var(--deep-2), var(--deep) 65%);
}

.brand-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.07;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent 94%);
}

.brand, .brand-copy, .panel-footer { position: relative; z-index: 2; }
.brand-link { display: inline-flex; align-items: center; color: inherit; text-decoration: none; gap: 12px; }
.brand-mark { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; background: rgba(255,255,255,.08); }
.brand-mark svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.brand-name { font-family: "Manrope", sans-serif; font-size: 18px; font-weight: 700; letter-spacing: .08em; }
.brand-name strong { color: var(--mint); }

.visual { position: absolute; z-index: 1; inset: 12% -8% auto -7%; height: 56%; opacity: .8; }
.route-map { width: 100%; height: 100%; }
.continent { fill: rgba(138, 215, 193, .05); stroke: rgba(171, 229, 211, .15); stroke-width: 1.5; }
.route { fill: none; stroke: var(--sand); stroke-width: 2.5; stroke-dasharray: 8 8; }
.route-secondary { opacity: .38; stroke-width: 1.4; }
.route-point { fill: #f5d49e; filter: url(#soft-glow); }
.route-pulse { fill: none; stroke: rgba(245, 212, 158, .5); stroke-width: 1.5; transform-origin: 554px 205px; animation: pulse 2.8s ease-out infinite; }
.orbit { position: absolute; border: 1px solid rgba(169, 227, 207, .12); border-radius: 50%; }
.orbit-one { width: 480px; height: 480px; top: -25px; left: 18%; }
.orbit-two { width: 610px; height: 280px; top: 80px; left: 4%; transform: rotate(-11deg); }

.brand-copy { max-width: 610px; margin-top: auto; margin-bottom: clamp(70px, 10vh, 120px); }
.eyebrow { margin: 0 0 20px; color: var(--sand); font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.brand-copy h1 { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(42px, 4.5vw, 72px); line-height: 1.08; letter-spacing: -.045em; }
.intro { max-width: 520px; margin: 24px 0 0; color: rgba(255,255,255,.67); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.7; }
.panel-footer { display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.46); font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(168,227,207,.1); }

.login-panel { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 54px clamp(34px, 7vw, 110px); background: #fbfcfc; }
.login-card { width: 100%; max-width: 460px; }
.login-heading { margin-bottom: 38px; }
.login-heading .eyebrow { margin-bottom: 14px; color: var(--teal); }
.login-heading h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(34px, 3vw, 46px); line-height: 1.12; letter-spacing: -.04em; }
.login-heading > p:last-child { margin: 13px 0 0; color: var(--muted); font-size: 15px; }

.field-group { margin-bottom: 22px; }
.field-group label, .label-row { font-size: 13px; font-weight: 600; }
.label-row { display: flex; align-items: center; justify-content: space-between; }
.text-button { padding: 0; border: 0; color: var(--teal); background: transparent; cursor: pointer; font-size: 12px; font-weight: 600; }
.text-button:hover { text-decoration: underline; }
.input-wrap { position: relative; margin-top: 9px; }
.input-wrap > svg { position: absolute; top: 50%; left: 16px; width: 19px; transform: translateY(-50%); fill: none; stroke: #8b999b; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.input-wrap input { width: 100%; height: 54px; padding: 0 48px; border: 1px solid var(--line); outline: none; border-radius: 10px; color: var(--ink); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.input-wrap input::placeholder { color: #9aa6a8; }
.input-wrap input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(12,112,109,.09); }
.input-wrap input.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(185,52,52,.07); }
.password-toggle { position: absolute; top: 50%; right: 12px; display: grid; width: 34px; height: 34px; padding: 0; transform: translateY(-50%); place-items: center; border: 0; border-radius: 7px; color: #718184; background: transparent; cursor: pointer; }
.password-toggle:hover { background: #f1f5f4; }
.password-toggle svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.field-error { min-height: 17px; margin: 5px 0 -17px; color: var(--danger); font-size: 11px; }

.checkbox-row { display: inline-flex; align-items: center; margin: 8px 0 28px; color: #55666a; cursor: pointer; gap: 10px; font-size: 13px; }
.checkbox-row input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.custom-checkbox { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid #c9d4d3; border-radius: 5px; background: var(--white); transition: .2s; }
.custom-checkbox svg { width: 14px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6); transition: .2s; }
.checkbox-row input:checked + .custom-checkbox { border-color: var(--teal); background: var(--teal); }
.checkbox-row input:checked + .custom-checkbox svg { opacity: 1; transform: scale(1); }
.checkbox-row input:focus-visible + .custom-checkbox { outline: 3px solid rgba(12,112,109,.16); }

.submit-button { display: flex; width: 100%; height: 56px; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 10px; color: var(--white); background: var(--deep); box-shadow: 0 12px 26px rgba(9,47,55,.15); cursor: pointer; font-weight: 600; transition: transform .2s, background .2s, box-shadow .2s; }
.submit-button:hover { transform: translateY(-1px); background: #0d4149; box-shadow: 0 15px 30px rgba(9,47,55,.2); }
.submit-button:active { transform: translateY(0); }
.submit-button:focus-visible, .text-button:focus-visible, .password-toggle:focus-visible, a:focus-visible { outline: 3px solid rgba(12,112,109,.25); outline-offset: 3px; }
.submit-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.submit-button:hover svg { transform: translateX(3px); }
.form-message { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 8px; color: #395d57; background: #edf7f3; font-size: 12px; line-height: 1.45; }
.form-message.visible { display: block; }
.support-copy { margin: 36px 0 0; padding-top: 27px; border-top: 1px solid #e7eceb; color: var(--muted); text-align: center; font-size: 12px; }
.support-copy a { color: var(--teal); font-weight: 600; text-decoration: none; }
.support-copy a:hover { text-decoration: underline; }
.demo-note { margin: 14px 0 0; color: #9aa6a8; text-align: center; font-size: 10px; }
.mobile-brand, .mobile-footer { display: none; }

@keyframes pulse { 0% { opacity: .9; transform: scale(.45); } 80%, 100% { opacity: 0; transform: scale(1.6); } }

@media (max-width: 920px) {
  .page-shell { display: block; }
  .brand-panel { display: none; }
  .login-panel { position: relative; min-height: 100svh; flex-direction: column; align-items: center; justify-content: flex-start; padding: 38px 28px 50px; background: linear-gradient(180deg, #f0f7f5 0, #fbfcfc 240px); }
  .login-panel::before { position: absolute; top: 0; right: 0; width: 230px; height: 170px; content: ""; border-bottom-left-radius: 100%; background: radial-gradient(circle at top right, rgba(12,112,109,.13), transparent 68%); pointer-events: none; }
  .mobile-brand { display: block; width: 100%; max-width: 460px; margin-bottom: 70px; }
  .mobile-brand .brand-link { color: var(--deep); }
  .mobile-brand .brand-mark { border-color: rgba(9,47,55,.15); background: rgba(255,255,255,.55); }
  .mobile-brand .brand-name strong { color: var(--teal); }
  .login-card { position: relative; z-index: 1; }
  .mobile-footer { display: block; position: absolute; right: 0; bottom: 16px; left: 0; color: #9aa5a7; text-align: center; font-size: 10px; }
}

@media (max-width: 520px) {
  .login-panel { padding: 28px 20px 52px; }
  .mobile-brand { margin-bottom: 56px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 15px; }
  .login-heading { margin-bottom: 32px; }
  .login-heading h2 { font-size: 35px; }
  .input-wrap input { height: 52px; }
  .submit-button { height: 54px; }
}

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