:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --green: #16A34A;
  --bg: #F8FAFC;
  --dark-panel: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg); height: 100vh; overflow: hidden; display: flex; }

/* LEFT PANEL */
.left-panel {
  width: 45%;
  background: var(--dark-panel);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
}
.grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.15) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.grid-pattern::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 30%, var(--dark-panel) 100%);
}

/* Pulse rings */
.pulse-container {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(37,99,235,0.4);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-expand 3.5s ease-out infinite;
}
.pulse-ring:nth-child(2) { animation-delay: 1.2s; }
.pulse-ring:nth-child(3) { animation-delay: 2.4s; }
@keyframes pulse-expand {
  0%   { width: 80px; height: 80px; opacity: 0.8; }
  100% { width: 420px; height: 420px; opacity: 0; }
}

/* Center icon */
.pulse-core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: var(--blue);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  box-shadow: 0 0 32px rgba(37,99,235,0.5);
}
.pulse-core svg { width: 28px; height: 28px; fill: white; }

.left-brand { position: relative; z-index: 2; }
.left-brand .logo-mark {
  width: 40px; height: 40px;
  background: var(--blue);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.left-brand .logo-mark svg { width: 22px; height: 22px; fill: white; }
.left-brand h1 { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; color: white; letter-spacing: -0.02em; }
.left-brand p { font-size: 0.85rem; color: #94A3B8; margin-top: 0.25rem; }

.left-footer { position: relative; z-index: 2; }
.stat-chips { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.stat-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  color: #CBD5E1;
  display: flex; align-items: center; gap: 0.4rem;
}
.stat-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* RIGHT PANEL */
.right-panel {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: var(--bg);
}
.login-card { width: 100%; max-width: 420px; }
.login-card h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.75rem; font-weight: 700; color: #0F172A; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.login-card .subtitle { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2rem; }

.form-label { font-size: 0.82rem; font-weight: 500; color: #374151; margin-bottom: 0.35rem; }
.form-control {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  color: #0F172A;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); outline: none; }

.toggle-pw {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  padding: 0; line-height: 1;
}

.btn-login {
  width: 100%;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.72rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 0.5rem;
}
.btn-login:hover { background: var(--blue-dark); }
.btn-login:active { transform: scale(0.99); }
.btn-login:disabled { opacity: 0.65; cursor: not-allowed; }

.forgot-link { font-size: 0.82rem; color: var(--blue); text-decoration: none; font-weight: 500; }
.forgot-link:hover { text-decoration: underline; }

.alert-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
  color: #DC2626;
  display: none;
  align-items: center;
  gap: 0.5rem;
}
.alert-error.show { display: flex; }

.footer-note { font-size: 0.78rem; color: #94A3B8; text-align: center; margin-top: 2rem; }

@media (max-width: 768px) {
  .left-panel { display: none; }
  .right-panel { padding: 1.5rem; }
}