:root {
  --bg: #f4f6f8;
  --sidebar: #14212e;
  --sidebar-2: #1c2f42;
  --accent: #d98324;
  --accent-2: #e6a04a;
  --text: #1d2733;
  --muted: #7c8a99;
  --line: #e2e8ee;
  --white: #fff;
  --danger: #c0392b;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* ───────────── Login ───────────── */
.login-body {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
  background: radial-gradient(1200px 600px at 50% -10%, #22384d 0%, #14212e 60%, #0e1822 100%);
}
.login-card {
  width: 100%; max-width: 360px; background: var(--white);
  border-radius: 14px; padding: 34px 30px 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35); text-align: center;
}
.login-logo { max-width: 92px; max-height: 92px; object-fit: contain; margin-bottom: 10px; }
.login-card h1 { font-size: 20px; margin: 4px 0 2px; }
.login-sub { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.login-card form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.login-card label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.login-card input {
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; color: var(--text); outline: none;
}
.login-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,131,36,.15); }
.login-card button {
  margin-top: 4px; padding: 12px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 600;
  transition: background .15s;
}
.login-card button:hover:not(:disabled) { background: var(--accent-2); }
.login-card button:disabled { opacity: .7; cursor: default; }
.login-erro { color: var(--danger); font-size: 13px; min-height: 18px; margin: 2px 0 0; }
.login-foot { color: var(--muted); font-size: 11px; margin-top: 18px; }

/* ───────────── Shell ───────────── */
.shell-body { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: 250px; flex-shrink: 0; background: var(--sidebar); color: #cdd8e3;
  display: flex; flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 6px; background: #fff; padding: 2px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand-txt strong { color: #fff; font-size: 15px; }
.brand-txt span { color: var(--accent-2); font-size: 11px; letter-spacing: .5px; text-transform: uppercase; }

.menu { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.menu-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px;
  border-radius: 8px; color: #cdd8e3; text-decoration: none; font-size: 14px;
}
.menu-item .ico { width: 20px; text-align: center; }
.menu-item:hover { background: var(--sidebar-2); color: #fff; }
.menu-item.active { background: var(--accent); color: #fff; }

.sidebar-foot { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.07); }
.user { font-size: 13px; color: #fff; margin-bottom: 8px; word-break: break-word; }
.btn-logout {
  width: 100%; padding: 8px; border: 1px solid rgba(255,255,255,.18); background: transparent;
  color: #cdd8e3; border-radius: 7px; cursor: pointer; font-size: 13px;
}
.btn-logout:hover { background: rgba(255,255,255,.08); color: #fff; }

.content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 56px; flex-shrink: 0; background: var(--white); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 0 20px;
}
.topbar h1 { font-size: 16px; margin: 0; font-weight: 600; }
.hamburger { display: none; font-size: 20px; background: none; border: 0; cursor: pointer; color: var(--text); }

.home { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.home-card { text-align: center; color: var(--muted); }
.home-card h2 { color: var(--text); margin: 0 0 8px; }

.module-frame { flex: 1; width: 100%; border: 0; background: #fff; }

/* ───────────── Responsivo ───────────── */
@media (max-width: 760px) {
  .hamburger { display: block; }
  .sidebar {
    position: fixed; z-index: 30; height: 100%; transform: translateX(-100%);
    transition: transform .2s;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,.4); }
}
