:root {
  --ink: #17202f;
  --muted: #66758c;
  --paper: #fffdf9;
  --line: rgba(72, 83, 103, 0.16);
  --blue: #2f65ec;
  --teal: #0f6672;
  --mint: #48c9a9;
  --rose: #d92332;
  --shadow: 18px 22px 48px rgba(83, 68, 44, 0.14);
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f7f0e7;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255, 238, 214, 0.9), rgba(232, 244, 255, 0.94) 46%, rgba(242, 235, 255, 0.88)),
    #f7f0e7;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 36px;
  background:
    radial-gradient(circle at 85% 18%, rgba(72, 201, 169, 0.34), transparent 24rem),
    radial-gradient(circle at 12% 8%, rgba(47, 101, 236, 0.22), transparent 26rem),
    rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.product-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 17px;
  color: white;
  background: linear-gradient(135deg, var(--blue), #6aa8ff);
  box-shadow: inset 7px 7px 14px rgba(255, 255, 255, 0.32), 0 12px 24px rgba(47, 101, 236, 0.24);
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 1.04rem;
}

.brand small,
.eyebrow,
.product-body small {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.count-pill {
  border: 1px solid rgba(15, 102, 114, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.68);
  font-weight: 900;
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logout-link {
  border: 1px solid rgba(217, 35, 50, 0.16);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.68);
  font-weight: 900;
}

.hero-copy {
  max-width: 730px;
  padding: 42px 38px 56px;
}

.hero-copy h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.hero-copy p {
  margin: 0;
  color: #425168;
  font-size: 1.1rem;
  line-height: 1.75;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0 18px;
}

.toolbar h2 {
  margin: 4px 0 0;
  font-size: 1.7rem;
}

.search-box {
  position: relative;
  width: min(380px, 100%);
}

.search-box span {
  position: absolute;
  top: 50%;
  left: 16px;
  color: var(--muted);
  font-weight: 900;
  transform: translateY(-50%);
}

.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px 15px 42px;
  outline: none;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 6px 6px 14px rgba(184, 164, 132, 0.12);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.product-card,
.empty-state {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow), inset 8px 8px 18px rgba(255, 255, 255, 0.62), inset -10px -12px 24px rgba(184, 164, 132, 0.13);
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 22px 28px 60px rgba(83, 68, 44, 0.18);
}

.product-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--teal), var(--mint));
}

.product-body {
  flex: 1;
  padding: 22px 0;
}

.product-body h3 {
  margin: 6px 0 10px;
  font-size: 1.35rem;
}

.product-body p {
  margin: 0;
  color: #53647a;
  line-height: 1.65;
}

.product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 14px 18px;
  color: white;
  background: linear-gradient(135deg, var(--blue), #194bd0);
  font-weight: 900;
  box-shadow: 0 14px 24px rgba(47, 101, 236, 0.24);
}

.empty-state {
  padding: 42px;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 10px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.empty-state.compact {
  margin-top: 18px;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.login-card {
  width: min(470px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow), inset 8px 8px 18px rgba(255, 255, 255, 0.66), inset -10px -12px 24px rgba(184, 164, 132, 0.13);
}

.login-card h1 {
  margin: 14px 0 8px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.02;
}

.login-card p {
  margin: 0;
  color: #53647a;
  line-height: 1.65;
}

.login-form {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #3d4b60;
  font-weight: 900;
}

.login-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 15px 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 6px 6px 14px rgba(184, 164, 132, 0.12);
}

.login-form button {
  border: 0;
  border-radius: 17px;
  padding: 15px 18px;
  color: white;
  background: linear-gradient(135deg, var(--blue), #194bd0);
  box-shadow: 0 14px 24px rgba(47, 101, 236, 0.24);
  cursor: pointer;
  font-weight: 900;
}

.auth-alert {
  margin-top: 18px;
  border: 1px solid rgba(217, 35, 50, 0.18);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--rose);
  background: rgba(255, 236, 238, 0.8);
  font-weight: 900;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 22px, 1180px);
    padding-top: 12px;
  }

  .topbar,
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    align-items: stretch;
    width: 100%;
  }

  .top-actions > * {
    text-align: center;
  }

  .hero {
    border-radius: 26px;
  }

  .hero-copy {
    padding: 26px 20px 34px;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .search-box {
    width: 100%;
  }
}
