:root {
  --bg0: #0b1f16;
  --bg1: #123528;
  --ink: #0f1f18;
  --muted: #5b6b63;
  --line: #d7e0db;
  --pri: #00b56b;
  --pri-ink: #fff;
  --panel: #ffffff;
  --shadow: 0 18px 50px rgba(8, 28, 18, 0.28);
  --radius: 18px;
  --font: "Poppins", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #f3f6f4;
}
.hidden { display: none !important; }

.landing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  padding: 24px;
  overflow: hidden;
}
.landing-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(0, 181, 107, 0.35), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(18, 80, 55, 0.45), transparent 50%),
    linear-gradient(160deg, var(--bg0), var(--bg1) 55%, #0e2a1e);
}
.landing-panel {
  position: relative;
  width: min(420px, 100%);
  background: var(--panel);
  border-radius: 28px;
  padding: 36px 28px 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  justify-items: center;
}
.landing-brand {
  width: min(240px, 70%);
  height: auto;
  display: block;
}
.landing-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.6rem);
  letter-spacing: 0.04em;
  font-weight: 800;
  color: var(--bg1);
}
.login-form {
  width: 100%;
  display: grid;
  gap: 8px;
}
.login-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.login-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  margin-bottom: 6px;
}
.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary {
  background: var(--pri);
  color: var(--pri-ink);
  margin-top: 6px;
}
.btn-primary:hover { filter: brightness(0.96); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.form-message {
  min-height: 1.2em;
  margin: 0;
  color: #b42318;
  font-size: 13px;
  text-align: center;
}

.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.home-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.home-brand img { border-radius: 10px; }
.home-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.home-user span { font-size: 14px; font-weight: 600; }
.emp-wrap select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  max-width: 220px;
}
.home-main {
  flex: 1;
  padding: 28px 22px 40px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.app-tile {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 14px 18px;
  display: grid;
  gap: 12px;
  justify-items: center;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.app-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 181, 107, 0.45);
  box-shadow: 0 10px 28px rgba(12, 40, 28, 0.1);
}
.app-tile img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.app-tile span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 640px) {
  .home-head { flex-direction: column; align-items: stretch; }
  .home-user { justify-content: space-between; }
}
