@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/__gate/assets/plex-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/__gate/assets/plex-400-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/__gate/assets/plex-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/__gate/assets/plex-500-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/__gate/assets/plex-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/__gate/assets/plex-600-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #131010;
  --bg-weak: #1b1818;
  --text: #b6b0b0;
  --strong: #f1ecec;
  --weak: #7d7a7a;
  --border: #3c3838;
  --border-strong: #4a4646;
  --accent: #fbffcc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: 440px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.brand .mark {
  display: block;
  height: 26px;
  width: auto;
}

.brand .wordmark {
  display: block;
  height: 20px;
  width: auto;
}

.box {
  border: 1px solid var(--border);
  padding: 28px;
}

.label {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--weak);
}

h1 {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--strong);
}

form {
  display: grid;
  gap: 16px;
}

.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--weak);
}

input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--bg-weak);
  color: var(--strong);
  font: inherit;
  outline: none;
}

input[type="password"]:focus,
input[type="text"]:focus {
  border-color: var(--accent);
}

input.mono {
  letter-spacing: 0.18em;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--weak);
  cursor: pointer;
  user-select: none;
}

.check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--accent);
}

button {
  padding: 11px 16px;
  border: 0;
  background: var(--strong);
  color: var(--bg);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

button:hover {
  background: #fff;
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.alert,
.notice {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid;
  font-size: 13px;
}

.alert {
  border-color: #6b2a2a;
  background: #1f1111;
  color: #ff9d9d;
}

.notice {
  border-color: #2a4a32;
  background: #101a13;
  color: #9bd6a8;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--weak);
}

@media (max-width: 480px) {
  .shell {
    padding: 32px 16px;
  }

  .box {
    padding: 20px;
  }
}
