:root {
  --ink: #0b1f1a;
  --muted: #587168;
  --paper: #f7f9f6;
  --white: #fff;
  --line: #cbd8d2;
  --mint: #49d49d;
  --coral: #ff6b4a;
  --font-display: "Manrope", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); margin: 0; min-height: 100vh; }
.login-shell { display: grid; grid-template-columns: minmax(390px, 0.9fr) minmax(500px, 1.1fr); min-height: 100vh; }

.tenant-panel { background: var(--ink); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(35px, 5vw, 72px); position: relative; }
.tenant-brand { align-items: center; display: flex; gap: 16px; position: relative; z-index: 2; }
.tenant-monogram { align-items: center; background: var(--mint); color: var(--ink); display: flex; flex: 0 0 54px; font-family: var(--font-display); font-size: 24px; font-weight: 800; height: 54px; justify-content: center; text-transform: uppercase; }
.tenant-logo { align-items: center; background: var(--white); display: flex; flex: 0 0 64px; height: 64px; justify-content: center; overflow: hidden; padding: 6px; }
.tenant-logo img { display: block; height: 100%; object-fit: contain; width: 100%; }
.tenant-brand p { color: #91aea4; font-size: 12px; font-weight: 700; margin: 0 0 3px; text-transform: uppercase; }
.tenant-brand h1 { font-family: var(--font-display); font-size: clamp(25px, 3vw, 39px); letter-spacing: 0; line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.tenant-status { align-items: center; color: #b8ccc5; display: flex; font-size: 13px; gap: 10px; position: relative; z-index: 2; }
.tenant-status span { background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 5px rgba(73,212,157,0.12); height: 8px; width: 8px; }

.network-art { height: min(48vw, 520px); left: 7%; position: absolute; right: 2%; top: 26%; }
.route { background: #315149; height: 1px; left: 41%; position: absolute; top: 44%; transform-origin: left; width: 51%; }
.route-one { transform: rotate(-40deg); }.route-two { transform: rotate(16deg); }.route-three { transform: rotate(58deg); width: 42%; }
.hub, .point { border-radius: 50%; position: absolute; }
.hub { background: var(--coral); border: 8px solid rgba(255,107,74,0.15); box-shadow: 0 0 0 1px var(--coral); height: 42px; left: 35%; top: 39%; width: 42px; }
.point { background: var(--mint); border: 7px solid rgba(73,212,157,0.13); box-shadow: 0 0 0 1px var(--mint); height: 28px; width: 28px; }
.point-one { left: 75%; top: 8%; }.point-two { left: 84%; top: 55%; }.point-three { left: 57%; top: 79%; }.point-four { background: #f5cc5b; border-color: rgba(245,204,91,0.13); box-shadow: 0 0 0 1px #f5cc5b; left: 15%; top: 62%; }

.form-panel { align-items: center; background: var(--paper); display: flex; justify-content: center; padding: 42px; }
.form-wrap { max-width: 430px; width: 100%; }
.mobile-tenant-brand { display: none; }
.form-kicker { color: #3d6a5c; font-size: 12px; font-weight: 700; margin: 0 0 9px; text-transform: uppercase; }
.form-wrap h2 { font-family: var(--font-display); font-size: 42px; letter-spacing: 0; line-height: 1.1; margin: 0 0 10px; }
.form-intro { color: var(--muted); margin: 0 0 35px; }
.login-alert { background: #fff0ec; border-left: 3px solid var(--coral); display: flex; flex-direction: column; margin: 0 0 22px; padding: 12px 14px; }
.login-alert.warning { background: #fff8dd; border-color: #d9a81b; }
.login-alert strong { font-size: 13px; }
.login-alert span { color: #795143; font-size: 12px; }
.field { margin-bottom: 19px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.input-wrap { position: relative; }
.input-wrap > svg { fill: none; height: 19px; left: 15px; position: absolute; stroke: #6f877f; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; top: 16px; width: 19px; }
.field input { background: var(--white); border: 1px solid var(--line); border-radius: 0; color: var(--ink); font-family: var(--font-body); font-size: 15px; height: 52px; outline: none; padding: 0 48px 0 46px; width: 100%; }
.field input:focus { border-color: #218261; box-shadow: 0 0 0 3px rgba(73,212,157,0.2); }
.password-toggle { background: transparent; border: 0; color: #637b73; cursor: pointer; height: 46px; padding: 12px; position: absolute; right: 3px; top: 3px; width: 46px; }
.password-toggle svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; width: 20px; }
.login-button { align-items: center; background: var(--ink); border: 0; color: var(--white); cursor: pointer; display: flex; font-family: var(--font-body); font-size: 15px; font-weight: 700; height: 54px; justify-content: space-between; margin-top: 28px; padding: 0 19px; width: 100%; }
.login-button:hover { background: #173c32; }
.login-button:disabled { cursor: wait; opacity: 0.7; }
.login-button span:last-child { color: var(--mint); font-size: 20px; }
.powered-by { align-items: center; border-top: 1px solid var(--line); color: #71877f; display: flex; font-size: 11px; gap: 9px; margin-top: 42px; padding-top: 18px; }
.powered-by img { height: 24px; width: auto; }

@media (max-width: 840px) {
  .login-shell { display: block; }
  .tenant-panel { display: none; }
  .form-panel { min-height: 100vh; padding: 30px 22px; }
  .mobile-tenant-brand { align-items: center; display: flex; gap: 12px; margin-bottom: 48px; }
  .mobile-tenant-brand .tenant-monogram { flex-basis: 42px; font-size: 19px; height: 42px; }
  .mobile-tenant-brand .tenant-logo { flex-basis: 48px; height: 48px; }
  .mobile-tenant-brand strong { font-family: var(--font-display); font-size: 18px; overflow-wrap: anywhere; }
}

@media (max-width: 430px) {
  .form-panel { align-items: flex-start; padding-top: 24px; }
  .mobile-tenant-brand { margin-bottom: 52px; }
  .form-wrap h2 { font-size: 35px; }
}
