:root {
  color-scheme: dark;
  --auth-font: "Onest", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: #000;
}

body {
  position: relative;
  color: var(--sx-text);
  font: 13px/1.5 var(--auth-font);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background: url("/assets/product/syntax-gameplay-showcase.webp") center / cover no-repeat;
  opacity: .03;
  pointer-events: none;
  content: "";
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.auth-page,
body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px 16px;
}

.auth-card,
.auth {
  position: relative;
  z-index: 1;
  width: min(390px, 100%);
  padding: 30px 30px 27px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-top-color: rgba(255, 255, 255, .15);
  border-radius: var(--sx-radius-xl);
  background: rgba(12, 12, 17, .66);
  box-shadow: inset 0 1px rgba(255, 255, 255, .055), 0 28px 80px rgba(0, 0, 0, .48);
  backdrop-filter: blur(22px);
  animation: auth-enter .5s var(--sx-ease) both;
}

.auth-card::before,
.auth::before {
  position: absolute;
  top: -1px;
  left: 30px;
  width: 38px;
  height: 2px;
  background: #8176ef;
  content: "";
}

.auth-card-register {
  width: min(410px, 100%);
}

.auth-brand,
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 34px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.035em;
}

.auth-brand img,
.logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.auth-card header,
.auth-hd {
  margin-bottom: 24px;
}

.auth-card h1,
.auth-title {
  margin: 0;
  color: #fff;
  font-size: 29px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.05em;
}

.auth-card header p,
.auth-sub {
  margin: 9px 0 0;
  color: var(--sx-text-muted);
  font-size: 11px;
}

.auth-card form {
  display: grid;
  gap: 14px;
}

.auth-field,
.field {
  display: grid;
  gap: 7px;
  margin: 0;
}

.auth-field > span,
.field-lbl {
  color: var(--sx-text-muted);
  font-size: 10px;
  font-weight: 500;
}

.auth-field input,
.inp {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: var(--sx-radius-sm);
  outline: 0;
  background: rgba(13, 13, 17, .9);
  color: #fff;
  font-size: 12px;
  transition: border-color var(--sx-fast), background var(--sx-fast);
}

.auth-field input:hover,
.inp:hover {
  border-color: #3d3d3d;
}

.auth-field input:focus,
.inp:focus {
  border-color: rgba(129, 118, 239, .68);
  background: rgba(16, 16, 21, .98);
  box-shadow: 0 0 0 3px rgba(129, 118, 239, .08);
}

.auth-field input::placeholder,
.inp::placeholder {
  color: #747474;
  opacity: 1;
}

.auth-row,
.field-row-between {
  display: flex;
  justify-content: flex-end;
  margin-top: -3px;
}

.auth-row a,
.link,
.auth-card footer a,
.auth-foot a {
  color: #b2b2b2;
  font-size: 10px;
  transition: color var(--sx-fast);
}

.auth-row a:hover,
.link:hover,
.auth-card footer a:hover,
.auth-foot a:hover {
  color: #fff;
}

.auth-submit {
  display: inline-flex;
  width: 100%;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  border: 0;
  border-radius: var(--sx-radius-sm);
  background: #f2f2f2;
  color: #050505;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition: background var(--sx-fast), transform var(--sx-fast), opacity var(--sx-fast);
}

.auth-submit:hover {
  background: #fff;
  transform: translateY(-1px);
}

.auth-submit:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.auth-submit svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.auth-message,
.err-box {
  margin: 0;
  padding: 10px 11px;
  border-left: 2px solid #666;
  background: #060606;
  color: #a8a8a8;
  font-size: 10px;
}

.err-box {
  display: none;
  margin-bottom: 10px;
}

.auth-card footer,
.auth-foot {
  margin-top: 22px;
  color: var(--sx-text-muted);
  font-size: 10px;
  text-align: center;
}

.auth-check,
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--sx-text-muted);
  font-size: 10px;
  cursor: pointer;
}

.auth-check input,
.checkbox input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: #fff;
}

.auth-check a,
.checkbox a {
  color: #c2c2c2;
}

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-ic {
  position: absolute;
  left: 12px;
  width: 14px;
  height: 14px;
  color: #777;
}

.field-wrap .inp {
  padding-left: 35px;
}

.field-toggle {
  position: absolute;
  right: 6px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #858585;
}

.field-toggle svg {
  width: 14px;
  height: 14px;
}

.field-toggle:hover {
  background: #111;
  color: #fff;
}

.lang-btn {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--sx-line);
  border-radius: var(--sx-radius-sm);
  background: #030303;
  color: var(--sx-text-muted);
}

.pstr {
  display: flex;
  gap: 3px;
}

.pstr-seg {
  height: 2px;
  flex: 1;
  background: #1c1c1c;
}

.pstr-seg.on1 {
  background: #777;
}

.pstr-seg.on2 {
  background: #929292;
}

.pstr-seg.on3 {
  background: #b0b0b0;
}

.pstr-lbl,
.terms-row {
  color: var(--sx-text-muted);
  font-size: 9px;
}

.atm-grid,
.atm-noise,
.orb,
.orb1,
.orb2,
.orb3 {
  display: none !important;
}

#maintenanceOverlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #000;
}

@keyframes auth-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.99);
  }
}

@media (max-width: 480px) {
  .auth-page,
  body {
    align-items: start;
    padding: 52px 12px 20px;
  }

  .auth-card,
  .auth {
    padding: 25px 21px 23px;
    border-radius: var(--sx-radius-lg);
  }

  .auth-card::before,
  .auth::before {
    left: 21px;
  }

  .auth-brand,
  .logo {
    margin-bottom: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card,
  .auth {
    animation: none;
  }
}
