:root {
  --sidebar: #1f2937;
  --brand-blue: #092a73;
  --brand-blue-dark: #061d54;
  --brand-line: #cfd5e2;
  --accent: #092a73;
  --soft: #f3f6f8;
}

body {
  background: var(--soft);
  color: #17202a;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--sidebar);
  color: white;
  padding: 20px 14px;
}

.brand {
  display: block;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  margin: 0 10px 18px;
}

.sidebar .nav-link {
  color: #dbe4ed;
  border-radius: 6px;
  padding: 10px 12px;
}

.sidebar .nav-link:hover {
  background: rgba(255, 255, 255, .1);
  color: white;
}

.main {
  min-width: 0;
}

.topbar {
  height: 62px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-weight: 700;
}

.content {
  padding: 24px;
}

.metric-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px;
}

.metric-card .label {
  color: #64748b;
  font-size: .85rem;
}

.metric-card .value {
  font-weight: 800;
  font-size: 1.45rem;
}

.stock-zero {
  background: #fee2e2 !important;
}

.stock-low {
  background: #fef3c7 !important;
}

.login-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(9, 42, 115, .94), rgba(6, 29, 84, .98)),
    #061d54;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-shell {
  width: min(1040px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.login-brand-panel {
  position: relative;
  padding: 42px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(9, 42, 115, .82), rgba(6, 29, 84, .94)),
    #092a73;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-brand-panel::after {
  content: "";
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 120px;
  height: 1px;
  background: rgba(255, 255, 255, .28);
}

.login-logo-box {
  width: min(390px, 100%);
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

.login-logo-box img {
  display: block;
  width: 100%;
  height: auto;
}

.login-copy {
  position: relative;
  max-width: 520px;
}

.login-kicker {
  margin: 0 0 10px;
  color: #d9e3ff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.login-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  font-weight: 900;
}

.login-copy p {
  margin: 0;
  max-width: 430px;
  color: #edf3ff;
  font-size: 1rem;
  line-height: 1.55;
}

.login-card {
  padding: 54px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
}

.login-card-title p {
  margin: 0 0 5px;
  color: #7e879c;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.login-card-title h2 {
  margin: 0 0 26px;
  color: var(--brand-blue);
  font-size: 1.85rem;
  font-weight: 900;
}

.login-card .form-label {
  color: #08225f;
  font-weight: 800;
}

.login-card .form-control {
  border-color: #bfc8dc;
  border-radius: 8px;
}

.login-card .form-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 .2rem rgba(9, 42, 115, .15);
}

.login-card .btn-primary,
.content .btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  border-color: var(--brand-blue-dark);
}

.login-card .btn-primary:hover,
.content .btn-primary:hover {
  background: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }

  .login-body {
    padding: 16px;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: 360px;
    padding: 28px;
  }

  .login-brand-panel::after {
    left: 28px;
    right: 28px;
    bottom: 112px;
  }

  .login-card {
    padding: 32px 24px;
  }
}
