:root {
  --bg: #0b1220;
  --panel: #111827;
  --panel-2: #0f172a;
  --line: rgba(255,255,255,0.08);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #f97316;
  --danger: #ef4444;
  --warn: #f59e0b;
  --ok: #22c55e;
  --info: #38bdf8;
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: linear-gradient(135deg, #0b1220 0%, #111827 45%, #1e293b 100%); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.page { min-height: 100vh; }
.login-page {
  display:grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(460px, 0.86fr);
  min-height:100vh;
  background: linear-gradient(135deg, #020817 0%, #071126 58%, #0c1835 100%);
}
.login-hero {
  position:relative;
  min-height:100vh;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px 24px;
}
.login-hero::after {
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(7,17,38,.05) 0%, rgba(7,17,38,.02) 60%, rgba(7,17,38,.35) 100%);
}
.login-hero-img {
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center center;
  filter: saturate(1.04) contrast(1.04);
  z-index:1;
}
.login-panel { display:flex; align-items:center; justify-content:center; padding: 36px 32px; position:relative; }
.card { width:100%; max-width: 470px; border-radius: 28px; padding: 30px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.login-glass {
  background: rgba(8, 18, 42, .62);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 22px 70px rgba(2, 8, 23, .42), inset 0 1px 0 rgba(255,255,255,.05);
}
.login-card-head { margin-bottom: 8px; }
.card h1 { margin:12px 0 10px; font-size: clamp(34px, 4vw, 48px); line-height:1; }
.card p { margin:0 0 22px; color: #c1cbdb; font-size: clamp(16px, 1.25vw, 20px); max-width: 18ch; line-height:1.3; }
.brand { display:inline-flex; align-items:center; gap:10px; padding:8px 14px; border:1px solid rgba(255,255,255,.16); border-radius:999px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); font-weight:700; color:#f8fafc; }
.brand-inline { font-size:14px; }
.field { display:flex; flex-direction:column; gap:10px; margin-bottom:18px; }
.field label { color:#e2e8f0; font-size:15px; }
.field input, .field select { border:1px solid rgba(255,255,255,.12); background: rgba(2,6,23,.62); color:var(--text); border-radius:16px; padding:16px 18px; outline:none; }
.field input:focus, .field select:focus { border-color: rgba(56,189,248,.65); box-shadow: 0 0 0 3px rgba(56,189,248,.15); }
.btn { border:0; border-radius:18px; padding:16px 24px; cursor:pointer; background: linear-gradient(135deg, #f97316, #ea580c); color:#fff; font-weight:700; min-width: 210px; }
.btn.secondary { background:#1f2937; border:1px solid var(--line); }
.btn.small { padding:10px 12px; border-radius:12px; min-width: 0; }
.alert { padding:12px 14px; border-radius:14px; margin-bottom:16px; }
.alert.error { background: rgba(239,68,68,.15); border:1px solid rgba(239,68,68,.3); color:#fecaca; }
.alert.ok { background: rgba(34,197,94,.14); border:1px solid rgba(34,197,94,.28); color:#bbf7d0; }
.dashboard { padding: 20px; max-width: 1440px; margin: 0 auto; }
.dashboard.narrow { max-width: 880px; }
.topbar { display:flex; gap:12px; justify-content:space-between; align-items:center; margin-bottom:18px; flex-wrap:wrap; }
.topbar h1 { margin:0; font-size: clamp(24px, 4vw, 36px); }
.muted { color: var(--muted); }
.toolbar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.toolbar input, .toolbar select { border:1px solid var(--line); background:#0f172a; color:#fff; border-radius:12px; padding:12px 14px; }
.toolbar-filters input { min-width: 280px; }
.summary { display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.summary-card { background: rgba(15,23,42,.88); border:1px solid var(--line); border-radius:20px; padding:18px; }
.summary-card .label { color: var(--muted); font-size:14px; }
.summary-card .value { font-size: 34px; font-weight: 700; margin-top: 8px; }
.board { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:16px; }
.users-board { grid-template-columns: 1fr 1fr; }
.column { background: rgba(15,23,42,.82); border:1px solid var(--line); border-radius:22px; padding:16px; min-height: 300px; }
.account-column { max-width: 640px; }
.column h2 { margin:0 0 14px; font-size:20px; }
.cards { display:grid; gap:12px; }
.activity-card { border-radius:18px; padding:16px; border:1px solid rgba(255,255,255,.08); background: rgba(2,6,23,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
.activity-card.status-open { border-left: 5px solid var(--warn); }
.activity-card.status-overdue { border-left: 5px solid var(--danger); }
.activity-card.status-done { border-left: 5px solid var(--ok); }
.activity-card .title { font-size:18px; font-weight:700; margin-bottom:8px; }
.activity-card .meta { display:grid; gap:6px; color:#cbd5e1; font-size:14px; }
.badge { display:inline-flex; align-items:center; gap:8px; padding:7px 10px; border-radius:999px; font-size:12px; font-weight:700; }
.badge.warn { background: rgba(245,158,11,.15); color:#fde68a; }
.badge.danger { background: rgba(239,68,68,.15); color:#fecaca; }
.badge.ok { background: rgba(34,197,94,.14); color:#bbf7d0; }
.badge.info { background: rgba(56,189,248,.14); color:#bae6fd; }
.section-head { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom:10px; }
.table-wrap { overflow:auto; background: rgba(15,23,42,.88); border:1px solid var(--line); border-radius:18px; margin-top:18px; }
.table { width:100%; border-collapse:collapse; min-width: 720px; }
.table th, .table td { padding:14px 12px; border-bottom:1px solid rgba(255,255,255,.06); text-align:left; font-size:14px; }
.table th { color:#cbd5e1; background: rgba(255,255,255,.02); }
.footer-note { margin-top:16px; color: var(--muted); font-size:13px; }
.state-banner{margin:0 0 16px; padding:12px 14px; border-radius:16px; font-weight:600; border:1px solid transparent;}
.state-banner.ok{background:rgba(34,197,94,.14); color:#bbf7d0; border-color:rgba(34,197,94,.28);}
.state-banner.warn{background:rgba(245,158,11,.14); color:#fde68a; border-color:rgba(245,158,11,.28);}
.state-banner.danger{background:rgba(239,68,68,.15); color:#fecaca; border-color:rgba(239,68,68,.3);}
@media (max-width: 1200px){ .summary { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 1100px){ .board { grid-template-columns: 1fr; } .users-board { grid-template-columns: 1fr; } .summary { grid-template-columns: repeat(2, minmax(0,1fr)); } .login-page { grid-template-columns: minmax(0,1fr) minmax(390px, 0.82fr);} .card { max-width: 430px; } }
@media (max-width: 820px){
  .login-page { display:block; position:relative; min-height:100svh; background:#071126; }
  .login-hero { min-height:100svh; padding: 12px; }
  .login-hero::after { background: linear-gradient(180deg, rgba(7,17,38,.08) 0%, rgba(7,17,38,.12) 55%, rgba(7,17,38,.18) 100%); }
  .login-hero-img { width:100%; height:100svh; object-fit:contain; object-position:center top; }
  .login-panel { position:absolute; left:0; right:0; bottom:22px; z-index:3; padding: 0 14px; background: transparent; }
  .card { max-width:none; width:100%; padding: 24px 20px; border-radius: 26px; }
  .login-glass { background: rgba(8, 18, 38, .82); }
  .card h1 { font-size: 34px; }
  .card p { max-width: none; font-size: 16px; }
  .btn { width: 100%; min-width: 0; }
  .summary { grid-template-columns: 1fr; }
  .dashboard { padding: 14px; }
  .toolbar-filters input { min-width: 100%; width: 100%; }
}
