:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #081735;
  --cream: #faf6ee;
  --navy: #081635;
  --gold: #ffc219;
  --unit: clamp(.62px, min(.0806vw, .143vh), 1.06px);
  background: var(--cream);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.portal { display: grid; grid-template-columns: 38.15% minmax(0, 1fr); min-height: 100svh; }

.brand {
  position: relative;
  overflow: hidden;
  background: #0a1038;
  padding: calc(37 * var(--unit)) 10.7%;
}

.wordmark { width: min(86%, calc(242 * var(--unit))); }
.wordmark img { display: block; width: 100%; height: auto; }
.wordmark::after {
  content: "";
  display: block;
  background: var(--gold);
  width: 39%;
  height: calc(3 * var(--unit));
  margin: calc(18 * var(--unit)) auto 0;
}

.brand-illustration {
  position: absolute;
  bottom: 11%;
  left: 7.8%;
  width: min(84%, calc(400 * var(--unit)));
}

.workspace {
  display: grid;
  align-items: center;
  padding: calc(34 * var(--unit)) 8.4% calc(54 * var(--unit)) 7.9%;
}

.panel { width: min(100%, calc(641 * var(--unit))); }
.panel-heading {
  padding-bottom: calc(24 * var(--unit));
  margin-bottom: calc(34 * var(--unit));
  border-bottom: 1px solid #303d58;
}
h1 {
  margin: 0;
  font-size: calc(45 * var(--unit));
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .002em;
}

.subtitle {
  margin: calc(6 * var(--unit)) 0 0;
  font-size: max(17px, calc(23 * var(--unit)));
  line-height: 1.3;
}

form { display: grid; }
.field + .field { margin-top: calc(22 * var(--unit)); }
label {
  display: block;
  margin-bottom: calc(6 * var(--unit));
  font-size: max(17px, calc(23 * var(--unit)));
  font-weight: 700;
  line-height: 1.2;
}

input, button { font: inherit; border-radius: 7px; }
input {
  display: block;
  width: 100%;
  height: max(44px, calc(52 * var(--unit)));
  padding: 0 14px;
  border: 1px solid #607798;
  background: #fff;
  color: inherit;
  font-size: max(16px, calc(22 * var(--unit)));
}

#login { border-color: #c58805; }
.password { position: relative; }
.password input { padding-right: calc(76 * var(--unit)); }
#toggle-password {
  position: absolute;
  inset: 1px 1px 1px auto;
  display: grid;
  place-items: center;
  width: max(44px, calc(64 * var(--unit)));
  border: 0;
  background: transparent;
  color: inherit;
}

#toggle-password svg {
  width: max(23px, calc(29 * var(--unit)));
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eye-slash { display: none; }
[aria-pressed="true"] .eye-slash { display: block; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .68; }
:is(input, button):focus-visible { outline: 2px solid #a76d07; outline-offset: 3px; }
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: min(100%, max(210px, 55%));
  gap: calc(18 * var(--unit));
  min-height: max(44px, calc(56 * var(--unit)));
  margin-top: calc(37 * var(--unit));
  border: 0;
  background: var(--navy);
  color: #fff;
  font-size: max(17px, calc(23 * var(--unit)));
  font-weight: 700;
}
.primary svg {
  width: calc(28 * var(--unit));
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
}
.primary:hover:enabled { background: #112950; }
.error { color: #9b2424; margin: 16px 0 0; }
.error:empty { display: none; }

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 124px), 1fr));
  gap: clamp(12px, 1.2vw, 18px);
}

.product {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 15px 10px;
  border: 1px solid #607798;
  border-radius: 7px;
  background: #fffdf9;
  color: inherit;
  text-align: center;
}

.product img { width: min(100%, 90px); aspect-ratio: 1; object-fit: contain; }
.product img.fallback { padding: 10px; background: #0a1038; border-radius: 16px; }
.product strong { font-size: 1.05rem; }
.product span { color: #36425a; }
.product:hover:enabled { border-color: #c58805; background: #fff8e8; }
.secondary {
  margin-top: 22px;
  padding: 8px 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  :root { --unit: .84px; }
  .portal { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .brand { padding: 18px 24px; }
  .wordmark { width: 154px; }
  .wordmark::after { margin-top: 5px; }
  .brand-illustration { width: 104px; left: auto; right: 20px; bottom: -42px; }
  .workspace { justify-items: center; padding: 38px 24px; }
  h1 { font-size: clamp(30px, 7vw, 41px); }
}
