:root {
  color-scheme: light;
  --navy: #052b4f;
  --blue: #06466f;
  --teal: #00a6a6;
  --aqua: #17c6c3;
  --green: #62c936;
  --ink: #102033;
  --muted: #65758b;
  --line: #dbe4ed;
  --soft: #f4f7fa;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
}

button,
input {
  font: inherit;
}

.customer-shell {
  min-height: 100vh;
}

.auth-panel {
  display: grid;
  width: min(100%, 1040px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 24px;
  align-content: center;
  gap: 28px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-block strong,
.brand-block span {
  display: block;
}

.brand-block strong {
  color: var(--navy);
  font-size: 18px;
}

.brand-block span {
  color: var(--muted);
  font-size: 13px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--navy), var(--teal));
}

.auth-copy h1,
.welcome-band h1,
.section-title h2,
.product-card h3 {
  margin: 0;
  letter-spacing: 0;
}

.auth-copy h1 {
  color: var(--navy);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
}

.auth-copy p,
.section-title p,
.welcome-band p,
.product-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.form-card,
.product-card,
.empty-card,
.welcome-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(5, 43, 79, 0.08);
}

.form-card {
  display: grid;
  max-width: 460px;
  gap: 16px;
  padding: 22px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
}

input:focus {
  outline: 3px solid rgba(23, 198, 195, 0.22);
  border-color: var(--teal);
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  background: var(--teal);
}

button:hover {
  background: #078f91;
}

.account-view {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 28px 24px 52px;
}

.account-header,
.product-topline,
.product-details {
  display: flex;
  align-items: center;
}

.account-header {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.brand-block.compact .brand-mark {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.ghost-button {
  width: auto;
  min-height: 38px;
  padding: 0 16px;
  color: var(--navy);
  border: 1px solid var(--line);
  background: var(--white);
}

.ghost-button:hover {
  background: var(--soft);
}

.welcome-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
}

.welcome-band span,
.welcome-band p {
  color: rgba(255, 255, 255, 0.74);
}

.welcome-band h1 {
  margin-top: 6px;
  font-size: 34px;
}

.status-pill {
  align-self: flex-start;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  background: var(--green);
}

.section-title {
  margin: 30px 0 14px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.product-card,
.empty-card {
  padding: 20px;
}

.product-topline {
  justify-content: space-between;
  gap: 16px;
}

.product-topline h3 {
  color: var(--navy);
  font-size: 19px;
}

.product-topline > span {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  background: rgba(98, 201, 54, 0.18);
}

.usage-bar {
  overflow: hidden;
  height: 10px;
  margin: 22px 0 18px;
  border-radius: 999px;
  background: #e6edf3;
}

.usage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.product-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-details div {
  display: grid;
  gap: 4px;
}

.product-details small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-details strong {
  color: var(--ink);
  font-size: 15px;
}

.empty-card {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(380px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 12px 28px rgba(5, 43, 79, 0.24);
}

.hidden {
  display: none;
}

@media (max-width: 680px) {
  .auth-panel,
  .account-view {
    padding: 24px 16px;
  }

  .auth-copy h1,
  .welcome-band h1 {
    font-size: 30px;
  }

  .welcome-band,
  .account-header {
    align-items: stretch;
    flex-direction: column;
  }

  .status-pill {
    align-self: flex-start;
  }

  .product-details {
    grid-template-columns: 1fr;
  }
}
