 :root {
  --bg: #edf1f5;
  --card: rgba(255,255,255,0.88);
  --line: #d9e0e8;
  --text: #142130;
  --muted: #64748b;
  --dark: #0f172a;
  --primary: #0b1220;
  --secondary: #f8fafc;
  --success: #ecfdf3;
  --error: #fef2f2;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.95), transparent 30%),
    radial-gradient(circle at bottom right, rgba(148,163,184,0.16), transparent 24%),
    linear-gradient(135deg, #eef2f6 0%, #e5ebf2 100%);
}
.login-visual,
.login-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.login-visual {
  border-radius: 34px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.login-visual::before,
.login-visual::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.06);
}
.login-visual::before { width: 420px; height: 420px; }
.login-visual::after { width: 560px; height: 560px; }
.brand-mark { position: relative; width: 280px; height: 280px; display: grid; place-items: center; margin-bottom: 34px; }
.brand-circle { position: absolute; border-radius: 999px; display: grid; place-items: center; }
.brand-circle.outer { width: 280px; height: 280px; border: 1px solid rgba(15, 23, 42, 0.08); background: rgba(255,255,255,0.58); }
.brand-circle.middle { width: 208px; height: 208px; border: 1px solid rgba(15, 23, 42, 0.12); background: rgba(255,255,255,0.84); }
.brand-circle.inner { width: 136px; height: 136px; background: linear-gradient(135deg, #0f172a 0%, #24364f 100%); color: #fff; font-weight: 800; font-size: 34px; letter-spacing: 0.1em; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22); }
.visual-copy { max-width: 620px; position: relative; z-index: 1; }
.visual-copy h1 { font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.05; margin: 0 0 14px; }
.visual-copy p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.eyebrow { font-size: 12px; letter-spacing: 0.22em; font-weight: 700; text-transform: uppercase; color: #475569; display: inline-block; margin-bottom: 12px; }
.eyebrow.dark { color: #64748b; }

.login-card-wrap { display: grid; place-items: center; }
.login-card { width: 100%; max-width: 440px; border-radius: 30px; padding: 32px; }
.login-card-top h2 { margin: 0; font-size: 2rem; }
.login-card-top p { margin: 8px 0 0; color: var(--muted); }
.form-stack { display: grid; gap: 16px; margin-top: 22px; }
.form-stack label span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-stack input { width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.btn { border: 0; border-radius: 18px; padding: 14px 18px; font-weight: 700; cursor: pointer; }
.btn-full { width: 100%; }
.btn-primary { background: linear-gradient(135deg, #0f172a 0%, #21324a 100%); color: #fff; }
.btn-secondary { background: #fff; color: var(--text); border: 1px solid var(--line); }
.login-footer-note { margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.alert { border-radius: 16px; padding: 14px 16px; margin-top: 16px; font-size: 14px; }
.alert-error { background: var(--error); color: #991b1b; }
.alert-success { background: var(--success); color: #065f46; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 290px 1fr; }
.sidebar { background: linear-gradient(180deg, #0b1220 0%, #111c30 100%); color: #fff; padding: 24px; display: flex; flex-direction: column; gap: 28px; }
.sidebar-brand { display: flex; align-items: center; gap: 14px; }
.sidebar-logo { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,0.10); font-weight: 800; letter-spacing: 0.12em; }
.sidebar-title { font-weight: 800; }
.sidebar-subtitle { color: rgba(255,255,255,0.7); font-size: 14px; }
.sidebar-nav { display: grid; gap: 10px; }
.sidebar-nav a { padding: 13px 14px; border-radius: 16px; color: rgba(255,255,255,0.78); }
.sidebar-nav a.active, .sidebar-nav a:hover { background: rgba(255,255,255,0.10); color: #fff; }
.logout-link { margin-top: auto; padding: 13px 14px; border-radius: 16px; background: rgba(255,255,255,0.08); }
.main-content { padding: 28px; }
.topbar { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.topbar h1 { margin: 6px 0 4px; font-size: 2rem; }
.topbar p { margin: 0; color: var(--muted); }
.topbar-actions { display: flex; gap: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.stat-card, .panel-card { background: rgba(255,255,255,0.88); border: 1px solid rgba(255,255,255,0.45); box-shadow: var(--shadow); border-radius: 26px; }
.stat-card { padding: 20px; }
.stat-card span { display: block; color: var(--muted); font-size: 14px; }
.stat-card strong { display: block; margin-top: 8px; font-size: 1.55rem; }
.panel-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; margin-top: 18px; }
.panel-card { padding: 22px; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; }
.panel-head h3 { margin: 0; }
.panel-head span { color: var(--muted); font-size: 14px; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quick-btn { padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-align: left; font-weight: 700; cursor: pointer; }
.quick-btn.primary { background: #0f172a; color: #fff; border-color: #0f172a; }
.timeline-list { display: grid; gap: 12px; }
.timeline-item { display: flex; justify-content: space-between; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; align-items: center; }
.timeline-item p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.timeline-item span { font-weight: 700; }

@media (max-width: 1024px) {
  .login-page { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .stats-grid, .panel-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .login-page { padding: 14px; }
  .login-visual { padding: 26px 20px; min-height: 46vh; }
  .brand-mark { width: 220px; height: 220px; margin-bottom: 24px; }
  .brand-circle.outer { width: 220px; height: 220px; }
  .brand-circle.middle { width: 164px; height: 164px; }
  .brand-circle.inner { width: 110px; height: 110px; font-size: 28px; }
  .visual-copy h1 { font-size: 2rem; }
  .login-card { padding: 24px 20px; }
  .main-content { padding: 16px; }
  .topbar { flex-direction: column; align-items: stretch; }
  .topbar-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .stats-grid, .panel-grid, .quick-grid { grid-template-columns: 1fr; }
}
