@font-face {
  font-family: Outfit;
  src: url('/panel/assets/outfit-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Outfit;
  src: url('/panel/assets/outfit-bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Outfit, system-ui, sans-serif;
  background: #100b19;
  color: #faf6ff;
  --surface: #1b1327;
  --border: #3b2b4e;
  --muted: #cabbdc;
  --accent: #c1a3ff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid #cfb4ff; outline-offset: 4px; }

.top { border-bottom: 1px solid var(--border); background: #150e20; }
.top-inner, .layout { max-width: 1100px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 36px); }
.top-inner { min-height: 70px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand img { object-fit: contain; }
.layout { padding-block: clamp(24px, 7vw, 76px); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; }

.login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr);
  min-height: 400px;
  overflow: hidden;
  background: linear-gradient(118deg, #1b1327 44%, #281638);
}
.login-content { padding: clamp(24px, 5vw, 60px); align-self: center; }
.section-label { color: var(--accent); margin: 0 0 10px; font-size: .875rem; font-weight: 700; letter-spacing: .065em; text-transform: uppercase; }
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); line-height: 1.04; margin: 0; overflow-wrap: anywhere; }
h2 { margin: 0; font-size: 1.06rem; }
.intro, .hint, .metric p, .hosting p { color: var(--muted); line-height: 1.5; }
.intro { max-width: 43ch; margin: 16px 0 25px; font-size: 1.08rem; }
.hint { margin: 12px 0 0; font-size: .875rem; }
.hint code { color: var(--accent); white-space: nowrap; }
.login-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.art { min-width: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 50%, #7447bd54, transparent 65%); }
.art img { max-width: 72%; height: auto; object-fit: contain; filter: drop-shadow(0 14px 30px #0d0719); }
.button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 9px 15px; border: 1px solid transparent; border-radius: 11px; font-weight: 700; cursor: pointer; }
.primary { background: #6c49c3; color: #fff; box-shadow: 0 4px 18px #0e061d7a; }
.primary:hover { background: #7954d6; }
.secondary { background: #281d37; border-color: #523c6a; color: #f5eeff; }
.secondary:hover { background: #37274c; }
.button:disabled { opacity: .65; cursor: wait; }
.notice { margin-block: 16px; padding: 13px 16px; border: 1px solid #684e8a; border-radius: 12px; color: #f0e6ff; background: #271a37; }
.heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.heading h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.vip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid #72582f; border-radius: 30px; background: #292015; color: #fce0a8; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.metric { min-width: 0; padding: 22px; display: flex; align-items: flex-start; flex-direction: column; gap: 8px; }
.metric strong { font-size: 1.3rem; overflow-wrap: anywhere; }
.metric p, .hosting p { margin: 0; }
#ip { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.hosting { margin-top: 14px; padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; }
.hosting p { margin-top: 5px; }

@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:last-child { grid-column: 1 / -1; }
  .login { grid-template-columns: minmax(0, 1fr) minmax(130px, .45fr); min-height: 0; }
}

@media (max-width: 465px) {
  .login { grid-template-columns: 1fr; }
  .art { grid-row: 1; min-height: 124px; padding-top: 14px; }
  .art img { width: 112px; }
  .login-content { padding-top: 6px; }
  .grid { grid-template-columns: 1fr; }
  .metric { padding: 16px; }
  .top-inner { min-height: 59px; }
  .brand img { width: 30px; height: 30px; }
}
