@font-face {
  font-family: Inter;
  src: url('/inter.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; }
:root { color-scheme: dark; }
body {
  margin: 0;
  color: #f1f1f1;
  background: #141414;
  font: 16px/1.5 Inter, system-ui, sans-serif;
}
h1, h2, p { margin: 0; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #cfcfcf; outline-offset: 3px; }

.login {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 32px 16px;
  background: radial-gradient(ellipse at 50% 48%, #222 0%, #121212 65%, #0e0e0e 100%);
}
.landlines {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.landlines span {
  position: absolute;
  width: 120%;
  height: 160%;
  border-radius: 50%;
  opacity: .84;
  background: repeating-radial-gradient(ellipse at center, transparent 0 12px, #b8b8b85c 13px 14px, transparent 15px 26px);
  mask-image: radial-gradient(ellipse, transparent 9%, black 44%, transparent 70%);
  animation: drift 25s ease-in-out infinite alternate;
}
.landlines span:first-child { top: -70%; left: -57%; }
.landlines span:last-child { bottom: -72%; right: -57%; animation-delay: -11s; animation-direction: alternate-reverse; }
@keyframes drift { to { transform: translate(18%, 12%) scale(1.15) rotate(14deg); } }
@media (prefers-reduced-motion: reduce) {
  .landlines span { animation: none; }
}

.login-panel {
  width: min(100%, 360px);
  padding: clamp(22px, 7vw, 34px);
  border: 1px solid #3d3d3d;
  border-radius: 13px;
  background: #202020;
  box-shadow: 0 22px 62px #0008;
}
.login-panel header { display: grid; justify-items: center; gap: 17px; margin-bottom: 28px; text-align: center; }
.login-panel img, .brand img { filter: brightness(0) invert(1); }
.login-panel h1 { font-size: clamp(23px, 8vw, 34px); line-height: 1; font-weight: 680; letter-spacing: -.055em; }
.login-panel form { display: grid; gap: 10px; }
.login-panel label { font-size: 13px; font-weight: 680; }
.login-panel input, .login-panel button { min-height: 49px; width: 100%; }
.login-panel input {
  min-width: 0;
  border: 1px solid #707070;
  border-radius: 12px;
  padding: 10px 13px;
  background: #151515;
  color: #f1f1f1;
}
.login-panel button {
  border: 0;
  border-radius: 100px;
  background: #e9e9e9;
  color: #161616;
  font-size: 14px;
  font-weight: 700;
}
.login-panel button:hover { background: #fff; }
.login-panel button span { margin-inline-start: 7px; }
.login-error { color: #dedede; font-size: 13px; }

.atlas { width: min(100%, 1395px); margin: auto; padding: 28px clamp(16px, 4vw, 60px) 52px; }
.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #414141;
  padding-bottom: 15px;
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 650; }
.portal-header button {
  min-height: 37px;
  padding: 6px 10px;
  border: 1px solid #555;
  border-radius: 6px;
  background: #212121;
  color: #f1f1f1;
  font-size: 12px;
  font-weight: 650;
}
.portal-header button:hover { background: #303030; }
.portal-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 35px 0 26px; }
.portal-heading h1 { font-size: clamp(32px, 6.3vw, 78px); font-weight: 630; letter-spacing: -.075em; line-height: .99; }
.portal-heading p { color: #bbb; font-size: 13px; white-space: nowrap; }
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  list-style: none;
  margin: 0;
  padding: 0;
}
.market-card { min-width: 0; border: 1px solid #414141; border-radius: 19px; overflow: hidden; background: #212121; }
.market-image { position: relative; display: grid; place-items: center; aspect-ratio: 1.85; overflow: hidden; background: #303030; color: #ccc; font-size: 12px; }
.market-image img { width: 100%; height: 100%; aspect-ratio: 1.85; object-fit: cover; object-position: center 24%; transition: scale .32s ease; }
.market-card:hover img { scale: 1.025; }
.image-status { position: absolute; right: 8px; bottom: 8px; left: 8px; justify-self: start; padding: 4px 6px; border-radius: 5px; background: #222; }
.market-content { padding: 14px; }
.market-content h2 { margin-bottom: 10px; font-size: clamp(19px, 2.12vw, 32px); font-weight: 670; letter-spacing: -.05em; line-height: 1.1; }
.market-status { min-width: 0; border-top: 1px solid #414141; padding: 8px 0; }
.market-status:last-child { padding-bottom: 0; }
.market-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; color: #bbb; font-size: 11px; }
.badge { padding: 2px 5px; border-radius: 4px; background: #444; color: #f1f1f1; font-size: 10px; font-weight: 750; line-height: 1.25; }
.market-status:last-child .badge { background: #282828; box-shadow: inset 0 0 0 1px #555; }
.market-meta code { color: #f1f1f1; font-weight: 670; }
.market-status a { display: inline-block; color: #ddd; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; text-underline-offset: 3px; text-decoration-color: #777; }
.market-status a:hover { text-decoration-color: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .market-image img { transition: none; }
}
@media (max-width: 880px) {
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 550px) {
  .portal-heading { align-items: start; flex-direction: column; padding-block: 26px 20px; }
  .market-grid { grid-template-columns: minmax(0, 1fr); }
}
