:root {
  --navy: #050d1a;
  --navy2: #0a1628;
  --navy3: #0f1f35;
  --cyan: #00e5ff;
  --cyan2: #00b4cc;
  --cyan-dim: rgba(0,229,255,0.12);
  --cyan-glow: rgba(0,229,255,0.4);
  --green: #39ff14;
  --red: #ff2d55;
  --amber: #ffbe00;
  --text: #c8d8e8;
  --text-dim: #5a7a9a;
  --border: rgba(0,229,255,0.18);
  --glass: rgba(10,22,40,0.85);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Exo 2', sans-serif;
  background: var(--navy);
  color: var(--text);
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Grid background */
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  animation: gridShift 20s linear infinite;
}
@keyframes gridShift {
  0% { transform: translateY(0); }
  100% { transform: translateY(40px); }
}

.scanlines {
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Corner decorations */
.corner {
  position: fixed;
  width: 60px; height: 60px;
  border-color: var(--cyan);
  border-style: solid;
  opacity: 0.4;
}
.corner-tl { top:16px; left:16px; border-width: 2px 0 0 2px; }
.corner-tr { top:16px; right:16px; border-width: 2px 2px 0 0; }
.corner-bl { bottom:16px; left:16px; border-width: 0 0 2px 2px; }
.corner-br { bottom:16px; right:16px; border-width: 0 2px 2px 0; }

/* Main wrapper */
.login-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 0;
  max-width: 900px;
  width: 95%;
  animation: fadeUp 0.8s ease forwards;
}
@keyframes fadeUp {
  from { opacity:0; transform: translateY(30px); }
  to { opacity:1; transform: translateY(0); }
}

/* Left panel */
.login-left {
  background: linear-gradient(160deg, #071526 0%, #0a1f3a 100%);
  border: 1px solid var(--border);
  border-right: none;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 280px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.login-left::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(0,229,255,0.06) 0%, transparent 60%);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:0.5} 50%{opacity:1} }

.emblem {
  position: relative;
  width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
}
.emblem-ring {
  position: absolute;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  opacity: 0.6;
}
.emblem-ring.outer { width: 100%; height: 100%; animation: spin 10s linear infinite; }
.emblem-ring.inner { width: 70%; height: 70%; animation: spin 6s linear infinite reverse; border-style: dashed; }
@keyframes spin { to { transform: rotate(360deg); } }
.emblem-icon {
  font-size: 36px;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan-glow);
  z-index: 1;
}

.classified-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--amber);
  border: 1px solid var(--amber);
  padding: 3px 8px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.left-text { text-align: center; }
.left-text h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  letter-spacing: 2px;
}
.left-text h1 span { color: var(--cyan); }
.left-text p {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 8px;
}

.system-stats { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.stat {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
}
.dot.active {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* Login Card */
.login-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-left: none;
  flex: 1;
  padding: 40px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cyan);
}
.header-line { flex: 1; height: 1px; background: var(--border); }

.login-title { margin-bottom: 28px; }
.login-title h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.made-by {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}
.made-by strong { color: var(--cyan); }

/* Inputs */
.input-group { margin-bottom: 22px; }
label {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--cyan);
  margin-bottom: 8px;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 12px;
  color: var(--cyan);
  font-size: 14px;
  pointer-events: none;
}
input {
  width: 100%;
  background: rgba(0,229,255,0.04);
  border: 1px solid var(--border);
  border-bottom: none;
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  padding: 13px 40px 13px 38px;
  outline: none;
  transition: all 0.3s;
  letter-spacing: 1px;
}
input:focus {
  background: rgba(0,229,255,0.08);
  border-color: rgba(0,229,255,0.4);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(0,229,255,0.2);
}
input::placeholder { color: var(--text-dim); }
.input-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--border);
  transition: all 0.3s;
}
.input-wrap:focus-within .input-line {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}
.toggle-pw {
  position: absolute;
  right: 12px;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.2s;
}
.toggle-pw:hover { color: var(--cyan); }

.error-msg {
  font-size: 12px;
  color: var(--red);
  font-family: 'Share Tech Mono', monospace;
  margin-bottom: 16px;
  min-height: 18px;
  letter-spacing: 1px;
}

/* Button */
.btn-login {
  width: 100%;
  background: linear-gradient(90deg, var(--cyan2), var(--cyan));
  border: none;
  color: var(--navy);
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 4px;
  padding: 15px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.btn-login::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%);
  transition: transform 0.4s;
}
.btn-login:hover::before { transform: translateX(100%); }
.btn-login:hover {
  box-shadow: 0 0 30px var(--cyan-glow);
  transform: translateY(-1px);
}
.btn-login:active { transform: translateY(0); }

.login-footer {
  margin-top: 20px;
  text-align: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
  opacity: 0.6;
}

/* Bottom bar */
.bottom-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 8px 24px;
  border-top: 1px solid var(--border);
  background: rgba(5,13,26,0.9);
  z-index: 10;
}
.mono {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim);
}

@media (max-width: 680px) {
  .login-left { display: none; }
  .login-card { border-left: 1px solid var(--border); }
}
