:root {
  color-scheme: light;
  --navy: #0f172a;
  --navy-soft: #17233b;
  --slate: #334155;
  --muted: #64748b;
  --line: #dce3eb;
  --canvas: #f8fafc;
  --blue: #0369a1;
  --blue-hover: #075985;
  --green: #20c787;
  --danger: #c2413b;
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--canvas); color: #020617; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }

.login-shell { display: grid; grid-template-columns: minmax(440px, 46%) 1fr; min-height: 100vh; }
.brand-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(36px, 5vw, 68px);
  background: var(--navy);
  color: white;
}
.brand-content { position: relative; z-index: 2; display: flex; flex-direction: column; width: min(520px, 100%); }
.brand { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; color: white; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #22cf8b, #0ea5a4); box-shadow: 0 10px 24px rgba(25, 199, 132, .23); }
.brand-mark svg { width: 29px; fill: none; stroke: white; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand > span:last-child { display: flex; align-items: baseline; gap: 7px; }
.brand strong { font-size: 24px; letter-spacing: -.04em; }
.brand small, .mobile-brand small { color: #7ee2ba; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.hero-copy { margin: auto 0 7vh; }
.environment-chip { display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px; border: 1px solid rgba(126, 226, 186, .22); border-radius: 999px; background: rgba(32, 199, 135, .08); color: #9ae8c8; font-size: 12px; font-weight: 700; }
.environment-chip i { width: 7px; height: 7px; border-radius: 50%; background: #44dfa1; box-shadow: 0 0 0 5px rgba(68,223,161,.1); }
.hero-copy h1 { margin: 22px 0 18px; font-size: clamp(38px, 4vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
.hero-copy p { max-width: 500px; margin: 0; color: #a8b7ca; font-size: clamp(15px, 1.35vw, 17px); line-height: 1.75; }
.trust-list { display: grid; gap: 18px; margin-top: auto; }
.trust-list > div { display: flex; align-items: center; gap: 13px; }
.trust-list .check { flex: 0 0 auto; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: rgba(32,199,135,.11); color: #72e4b6; }
.check svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.trust-list strong, .trust-list small { display: block; }
.trust-list strong { font-size: 13px; }
.trust-list small { margin-top: 3px; color: #8496ad; font-size: 11px; }
.brand-panel footer { position: absolute; z-index: 2; right: clamp(36px, 5vw, 68px); bottom: 32px; color: #52637a; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.grid-pattern { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(148,163,184,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.22) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom right, transparent 4%, black 52%, transparent 90%); }
.ambient { position: absolute; border-radius: 50%; filter: blur(2px); }
.ambient-one { width: 430px; height: 430px; right: -250px; top: 18%; background: radial-gradient(circle, rgba(3,105,161,.24), transparent 70%); }
.ambient-two { width: 390px; height: 390px; left: -260px; bottom: -120px; background: radial-gradient(circle, rgba(32,199,135,.14), transparent 70%); }

.form-panel { display: grid; place-items: center; min-width: 0; padding: 42px clamp(28px, 7vw, 110px); background: white; }
.login-card { width: min(430px, 100%); }
.mobile-brand { display: none; }
.form-eyebrow { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.login-card h2 { margin: 13px 0 8px; color: var(--navy); font-size: 34px; line-height: 1.2; letter-spacing: -.035em; }
.form-intro { margin: 0 0 38px; color: var(--muted); font-size: 15px; }
form label { display: block; margin-bottom: 9px; color: var(--slate); font-size: 13px; font-weight: 750; }
.password-field { position: relative; display: flex; align-items: center; height: 54px; border: 1px solid var(--line); border-radius: 11px; background: white; transition: border-color .16s ease, box-shadow .16s ease; }
.password-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(3,105,161,.10); }
.password-field.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(194,65,59,.08); }
.lock-icon { position: absolute; left: 16px; width: 19px; fill: none; stroke: #8492a6; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-field input { width: 100%; height: 100%; padding: 0 52px 0 47px; border: 0; outline: 0; border-radius: inherit; color: var(--navy); background: transparent; font-size: 15px; }
.password-field input::placeholder { color: #9ca8b8; }
.password-field input:disabled { background: #f8fafc; }
.icon-button { position: absolute; right: 5px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: #718096; }
.icon-button:hover { background: #f1f5f9; color: var(--slate); }
.icon-button:focus-visible, .submit-button:focus-visible { outline: 3px solid rgba(3,105,161,.28); outline-offset: 2px; }
.icon-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.eye-closed, .showing .eye-open { display: none; }
.showing .eye-closed { display: block; }
.error-message { min-height: 30px; padding-top: 8px; color: var(--danger); font-size: 12px; }
.submit-button { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; border: 0; border-radius: 11px; background: var(--blue); color: white; font-weight: 750; box-shadow: 0 10px 24px rgba(3,105,161,.18); transition: background .16s ease, transform .16s ease; }
.submit-button:hover:not(:disabled) { background: var(--blue-hover); transform: translateY(-1px); }
.submit-button .arrow { position: absolute; right: 18px; width: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.submit-button.loading .spinner { display: block; }
.submit-button.loading .arrow { display: none; }
.security-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 28px; padding: 15px 16px; border: 1px solid #e8edf3; border-radius: 10px; background: #f8fafc; color: var(--muted); font-size: 11px; line-height: 1.55; }
.security-note svg { flex: 0 0 auto; width: 18px; fill: none; stroke: #4f647d; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.legal-links { display: flex; justify-content: center; gap: 9px; margin-top: 20px; color: #94a3b8; font-size: 11px; }
.legal-links a { color: #64748b; text-decoration: none; }
.legal-links a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { display: none; }
  .form-panel { min-height: 100vh; padding: 34px 24px; }
  .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 54px; color: var(--navy); }
  .mobile-brand .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .mobile-brand .brand-mark svg { width: 26px; }
  .mobile-brand strong { font-size: 20px; letter-spacing: -.035em; }
}

@media (max-width: 480px) {
  .form-panel { align-items: start; padding-top: 28px; }
  .mobile-brand { margin-bottom: 48px; }
  .login-card h2 { font-size: 30px; }
  .form-intro { margin-bottom: 32px; }
}

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