:root{
  --sb:#0f1220;
  --sb2:#0b0d19;
  --line:rgba(255,255,255,.08);
  --text:#e9ecff;
  --muted:rgba(233,236,255,.75);
  --activeBg:rgba(147,51,234,.18);
  --activeBd:rgba(147,51,234,.35);
  --mainBg:#f3f4f6;
  --card:#ffffff;
  --cardBd:rgba(17,24,39,.06);
  --shadow:0 12px 30px rgba(17,24,39,.06);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  background:var(--mainBg);
  color:#111827;
}

.layout{
  display:grid;
  grid-template-columns:280px 1fr;
  min-height:100vh;
}

.sidebar{
  background:linear-gradient(180deg,var(--sb) 0%, var(--sb2) 100%);
  color:var(--text);
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
}

.sb-top{
  padding:22px 18px 14px 18px;
  border-bottom:1px solid var(--line);
}
.brand{
  font-weight:900;
  font-size:18px;
  letter-spacing:-0.3px;
  margin:0 0 8px 0;
  color:#ff4d8d;
}
.who{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.4;
}

.nav{padding:12px 10px}
.nav a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  margin:6px 6px;
  border-radius:12px;
  color:rgba(233,236,255,.86);
  text-decoration:none;
  font-weight:800;
  font-size:14px;
  border:1px solid transparent;
}
.nav a:hover{
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.06);
}
.nav a.active{
  background:var(--activeBg);
  border-color:var(--activeBd);
  color:#fff;
}
.ico{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center}

.sb-bottom{
  padding:14px;
  border-top:1px solid var(--line);
}
.logout{
  display:block;
  width:100%;
  text-align:center;
  padding:12px 12px;
  border-radius:12px;
  background:#ef4444;
  color:#fff;
  font-weight:900;
  text-decoration:none;
}

.main{padding:22px 22px 40px 22px}
.page{max-width:1180px;margin:0 auto}
.topbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}
.h1{margin:0;font-weight:900;font-size:28px;letter-spacing:-0.6px}
.subtxt{margin:6px 0 0 0;color:#6b7280;font-size:14px}

.card{
  margin-top:16px;
  background:var(--card);
  border-radius:var(--radius);
  border:1px solid var(--cardBd);
  box-shadow:var(--shadow);
  padding:26px;
  min-height:320px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#9ca3af;
  font-weight:900;
}

/* login */
.login-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(124,58,237,.25), transparent 50%),
              radial-gradient(900px 500px at 90% 20%, rgba(147,51,234,.20), transparent 55%),
              linear-gradient(180deg, #0b0d19, #0f1220 55%, #0b0d19);
  color:var(--text);
}
.login-card{
  width:min(420px, 100%);
  background:rgba(18,22,42,.92);
  border:1px solid var(--line);
  border-radius:18px;
  padding:28px;
  box-shadow:0 14px 40px rgba(0,0,0,.25);
  backdrop-filter:blur(10px);
}
.login-title{
  font-size:22px;
  font-weight:900;
  margin:0 0 10px 0;
  letter-spacing:-0.2px;
}
.login-sub{margin:0 0 18px 0;color:rgba(233,236,255,.7);font-size:13px;line-height:1.5}
.field{display:flex;flex-direction:column;gap:8px;margin:14px 0}
.label{font-size:13px;color:rgba(233,236,255,.7)}
.input{
  height:46px;border-radius:12px;border:1px solid var(--line);
  background:rgba(255,255,255,.06);color:var(--text);
  padding:0 14px;outline:none;font-size:15px;
}
.input:focus{border-color:rgba(147,51,234,.55);box-shadow:0 0 0 3px rgba(147,51,234,.18)}
.btn{
  width:100%;height:46px;border:0;border-radius:12px;
  background:linear-gradient(135deg,#7c3aed,#9333ea);
  color:#fff;font-weight:900;font-size:15px;cursor:pointer;
}
.err{margin-top:12px;color:#ffb4b4;font-size:13px;display:none;line-height:1.4}

@media (max-width: 920px){
  .layout{grid-template-columns:1fr}
  .sidebar{position:relative;height:auto}
}
