@font-face {
  font-family: "Pixeloid Sans";
  src: url("/assets/pixeloid.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #130e1b;
  --line: #493a57;
  --text: #f4f0f7;
  --muted: #a79cb4;
  --accent: #f3797e;
  --font: "Pixeloid Sans", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background: url("/assets/background.gif") center / cover no-repeat;
  opacity: .43;
}
body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, #130e1bf5 0%, #130e1bd6 43%, #130e1b6b 100%),
    linear-gradient(0deg, #130e1b 0%, transparent 46%, #130e1ba8 100%);
}

.login-header {
  width: min(1232px, calc(100% - 96px));
  min-height: 100px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #5c4b6b80;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 72px; height: 58px; object-fit: contain; }
.brand span { font-size: 24px; letter-spacing: -1px; }

.login-main {
  width: min(1232px, calc(100% - 96px));
  min-height: calc(100vh - 100px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  padding: 64px 0 84px;
}
.login-panel { width: min(100%, 460px); }
h1 {
  margin: 20px 0 18px;
  font-size: clamp(54px, 6.3vw, 90px);
  line-height: .94;
  letter-spacing: -.07em;
  font-weight: 400;
}
h1 span { color: var(--accent); }
.login-intro {
  max-width: 420px;
  margin: 0 0 29px;
  color: #c9bed4;
  font-size: 12px;
  line-height: 1.7;
}
.login-message {
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px solid #91444c;
  border-radius: 4px;
  background: #3b1d28d9;
  color: #ffc2c5;
  font-size: 11px;
  line-height: 1.55;
}
.login-form { display: grid; gap: 9px; }
.login-form label {
  margin-top: 5px;
  color: #d6ccdf;
  font-size: 10px;
  letter-spacing: .05em;
}
.login-form input {
  width: 100%;
  min-height: 49px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  background: #19131fe8;
  color: var(--text);
  font: 13px var(--font);
  caret-color: var(--accent);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.login-form input:hover { border-color: #685777; }
.login-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #f3797e1c;
  background: #211827f2;
}
.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:hover,
.login-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px #19131f inset;
  transition: background-color 9999s ease-out;
}
.login-form button {
  min-height: 48px;
  margin-top: 13px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #1b111e;
  font: 12px var(--font);
  cursor: pointer;
  transition: background .16s, color .16s, transform .16s;
}
.login-form button:hover { background: #ff9297; transform: translateY(-1px); }
.login-form button:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.login-form button span { font-size: 18px; }
@media (max-width: 760px) {
  .login-header, .login-main { width: calc(100% - 40px); }
  .login-header { min-height: 86px; }
  .login-main { min-height: calc(100vh - 86px); padding-block: 48px 70px; }
  .brand img { width: 54px; height: 46px; }
  .brand span { font-size: 21px; }
}

@media (max-width: 520px) {
  .login-header, .login-main { width: calc(100% - 32px); }
  h1 { font-size: clamp(43px, 12.5vw, 52px); }
  .login-intro { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  body::before { display: none; }
}
