* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, 'Inter', 'Segoe UI', sans-serif;
  background: #0a0e17; color: #e2e8f0; min-height: 100vh; padding: 24px;
}
.wrap { max-width: 1080px; margin: 0 auto; }
a { color: #3b82f6; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.topbar h1 { font-size: 22px; font-weight: 600; }
.muted { color: #64748b; font-weight: 400; font-size: 0.85em; }

.card { background: #111827; border: 1px solid #1e3a5f; border-radius: 12px; padding: 28px; }
.login-card { max-width: 380px; margin: 8vh auto 0; }
.login-card h2 { margin-bottom: 16px; }
.login-card label { display: block; margin-bottom: 14px; color: #94a3b8; font-size: 13px; }
.login-card input { width: 100%; padding: 10px 12px; margin-top: 6px; border-radius: 8px;
  border: 1px solid #1e3a5f; background: #0a0e17; color: #e2e8f0; font-size: 14px; }
.err { color: #ef4444; background: rgba(239,68,68,0.12); padding: 8px 12px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; }

.btn { display: inline-block; padding: 9px 16px; border-radius: 8px; border: none;
  background: #0ea5e9; color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; }
.btn:hover { background: #38bdf8; text-decoration: none; }
.btn.ghost { background: transparent; border: 1px solid #1e3a5f; color: #94a3b8; }
.btn.ghost:hover { border-color: #3b82f6; color: #e2e8f0; }
.inline { display: inline; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: #111827; border: 1px solid #1e3a5f; border-radius: 10px; padding: 16px; }
.stat b { display: block; font-size: 26px; color: #f59e0b; }
.stat span { font-size: 12px; color: #64748b; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.search { display: flex; gap: 8px; flex-wrap: wrap; }
.search input { padding: 9px 12px; border-radius: 8px; border: 1px solid #1e3a5f;
  background: #0a0e17; color: #e2e8f0; min-width: 280px; font-size: 14px; }
.search select { padding: 9px; border-radius: 8px; border: 1px solid #1e3a5f; background: #0a0e17; color: #e2e8f0; }
.dl { display: flex; gap: 8px; }

.jobs { width: 100%; border-collapse: collapse; background: #111827; border-radius: 10px; overflow: hidden; }
.jobs th { text-align: left; padding: 12px 14px; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.05em; color: #64748b; border-bottom: 1px solid #1e3a5f; }
.jobs td { padding: 11px 14px; border-bottom: 1px solid #16213a; font-size: 14px; vertical-align: top; }
.jobs tr:hover td { background: #16213a; }
.jobs td a { font-weight: 500; }

.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.tag.kl { background: rgba(16,185,129,0.15); color: #10b981; }
.tag.oth { background: rgba(148,163,184,0.15); color: #94a3b8; }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pg { padding: 6px 12px; border-radius: 8px; border: 1px solid #1e3a5f; color: #94a3b8; font-size: 13px; }
.pg.cur { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }

/* detail page */
.back { display: inline-block; margin-bottom: 14px; font-size: 13px; color: #64748b; }
.detail-page h2 { font-size: 26px; margin-bottom: 4px; }
.company { color: #94a3b8; margin-bottom: 10px; }
.meta { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.criteria { width: 100%; border-collapse: collapse; background: #111827; border-radius: 10px; overflow: hidden; margin: 16px 0; }
.criteria th { text-align: left; padding: 10px 14px; color: #64748b; font-size: 13px; width: 180px; border-bottom: 1px solid #16213a; }
.criteria td { padding: 10px 14px; border-bottom: 1px solid #16213a; font-size: 14px; }
.detail-page h3 { margin: 20px 0 10px; font-size: 15px; color: #f59e0b; }
.desc { background: #111827; border: 1px solid #1e3a5f; border-radius: 10px; padding: 18px;
  line-height: 1.65; font-size: 14px; white-space: pre-wrap; }

/* ============ animated login scene ============ */
.login-body {
  padding: 0; margin: 0; overflow: hidden;
  background: linear-gradient(160deg, #0b1526 0%, #10233c 45%, #0d1b30 100%);
}
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
  mix-blend-mode: screen; will-change: transform; }
.a1 { width: 60vmax; height: 60vmax; left: -18vmax; top: -22vmax;
  background: radial-gradient(circle at 35% 35%, #22d3ee 0%, rgba(34,211,238,0) 60%);
  animation: drift1 26s ease-in-out infinite; }
.a2 { width: 52vmax; height: 52vmax; right: -15vmax; top: 8vmax;
  background: radial-gradient(circle at 60% 40%, #a78bfa 0%, rgba(167,139,250,0) 60%);
  animation: drift2 32s ease-in-out infinite; }
.a3 { width: 48vmax; height: 48vmax; left: 28vmax; bottom: -24vmax;
  background: radial-gradient(circle at 50% 50%, #10b981 0%, rgba(16,185,129,0) 60%);
  animation: drift3 38s ease-in-out infinite; }
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(9vmax, 6vmax) scale(1.15); }
  66% { transform: translate(-6vmax, 9vmax) scale(0.95); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1.05); }
  40% { transform: translate(-10vmax, -7vmax) scale(0.9); }
  75% { transform: translate(5vmax, -12vmax) scale(1.2); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(0.95); }
  50% { transform: translate(8vmax, -9vmax) scale(1.18); }
}
#particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.mountains { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 30vh; z-index: 1; }

.login-wrap {
  position: relative; z-index: 2; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.login-card.glass {
  max-width: 400px; width: 100%; text-align: center; margin: 0;
  background: rgba(13, 23, 42, 0.55);
  border: 1px solid rgba(148, 197, 255, 0.18);
  border-radius: 22px;
  padding: 44px 38px 38px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(2, 8, 23, 0.65), inset 0 1px 0 rgba(255,255,255,0.07);
  animation: cardIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.login-card .logo {
  width: 64px; height: 64px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
  font-size: 30px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(34,211,238,0.22), rgba(167,139,250,0.22));
  border: 1px solid rgba(148,197,255,0.22);
  box-shadow: 0 0 34px rgba(34,211,238,0.35), 0 0 70px rgba(167,139,250,0.2);
  animation: logoPulse 4s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 34px rgba(34,211,238,0.35), 0 0 70px rgba(167,139,250,0.2); }
  50% { box-shadow: 0 0 48px rgba(34,211,238,0.6), 0 0 95px rgba(167,139,250,0.35); }
}
.login-card h2 { font-size: 26px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.login-card .tagline { color: #8fa7c9; font-size: 13px; margin-bottom: 26px; }
.login-card label { display: block; text-align: left; margin-bottom: 16px;
  color: #9db4d6; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.login-card input {
  width: 100%; padding: 13px 14px; margin-top: 7px; border-radius: 12px;
  border: 1px solid rgba(148, 197, 255, 0.18); background: rgba(8, 15, 30, 0.7);
  color: #e8f0fa; font-size: 15px; transition: border-color 0.25s, box-shadow 0.25s;
}
.login-card input:focus { outline: none; border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18); }
.login-card input::placeholder { color: #43587a; }
.btn.glow {
  width: 100%; padding: 13px; margin-top: 6px; border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.35);
  transition: transform 0.18s, box-shadow 0.25s, filter 0.25s;
}
.btn.glow:hover { background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  box-shadow: 0 14px 40px rgba(14, 165, 233, 0.55); transform: translateY(-1px); }
.btn.glow:active { transform: translateY(0); }
.login-card .err { margin-top: 0; margin-bottom: 16px; }

/* sphere: background layer centered behind the card */
.sphere-scene {
  position: fixed; top: 50%; left: 50%;
  width: 520px; height: 520px;
  margin-left: -260px; margin-top: -260px;
  z-index: 1; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  perspective: 600px;
  animation: sphereFloat 9s ease-in-out infinite;
}
.sphere {
  width: 100%; height: 100%; object-fit: contain;
  border-radius: 50%;
  animation: sphereSpin 7s linear infinite;
  transform-style: preserve-3d;
  will-change: transform;
  user-select: none; -webkit-user-drag: none;
}
@keyframes sphereSpin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
@keyframes sphereFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.sphere-halo {
  position: absolute; inset: -40px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.30) 0%, rgba(129,140,248,0.16) 42%, rgba(0,0,0,0) 70%);
  filter: blur(10px);
  animation: haloPulse 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes haloPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@media (max-width: 640px) {
  .sphere-scene { width: 320px; height: 320px; margin-left: -160px; margin-top: -160px; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora, .sphere, .sphere-halo { animation: none; }
  #particles { display: none; }
}
