:root {
  --auth-bg: #02030a;
  --auth-card: linear-gradient(180deg, #050a1d, #000324);
  --auth-blue: #244fff;
  --auth-blue2: #042fda;
  --auth-muted: #bdbdbd;
  --auth-tab: #051867;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Montserrat, Inter, Arial, sans-serif; background: var(--auth-bg); color: #fff; }
img, svg {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.auth-root img,
.auth-root svg { pointer-events: none; }
.auth-root {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--auth-bg);
}
.auth-stage {
  position: relative;
  min-height: 100dvh;
  background: linear-gradient(180deg, #080a37 0%, #02030a 55%, #000212 100%);
}
.auth-stage-inner {
  position: relative;
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  padding: 24px 16px;
}
.auth-scene { display: none; }
.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.auth-lang { position: relative; }
.auth-lang .envex-lang-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 40;
  min-width: 160px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: #0a1238;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.auth-lang .envex-lang-menu[hidden] { display: none !important; }
.auth-lang .envex-lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.auth-lang .envex-lang-item:hover,
.auth-lang .envex-lang-item.is-on { background: rgba(36,79,255,.35); }
.auth-lang .envex-lang-item img { border-radius: 50%; }
.auth-chip {
  display: flex;
  align-items: center;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font: 800 15px/1 Inter, Montserrat, sans-serif;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.auth-chip-ico { position: relative; width: 44px; height: 44px; flex: 0 0 auto; }
.auth-chip-ico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-chip-ico .ring { inset: 2px; width: 40px; height: 40px; object-fit: contain; }
.auth-chip-ico.is-support { width: 40px; height: 40px; }
.auth-chip-ico.is-support .ring {
  inset: -4px;
  width: 48px;
  height: 48px;
  max-width: none;
  object-fit: contain;
}
.auth-chip-ico.is-support .ico {
  inset: auto;
  left: 12px;
  top: 10px;
  width: 15px;
  height: 18px;
  object-fit: contain;
}
.auth-chip span { margin-left: 8px; white-space: nowrap; }
.auth-logo {
  display: block;
  margin: 0 auto 24px;
  height: 64px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
.auth-card {
  margin: 0 auto;
  width: 100%;
  max-width: 28rem;
  overflow: hidden;
  border-radius: 28px;
  background: var(--auth-card);
  box-shadow: 0 0 32.5px 16px rgba(0,0,0,.26);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 48px;
  font-size: 16px;
  font-weight: 800;
}
.auth-tabs a, .auth-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  text-decoration: none;
  color: var(--auth-muted);
  background: var(--auth-tab);
  cursor: pointer;
  font: inherit;
}
.auth-tabs a:first-child, .auth-tabs button:first-child { border-top-left-radius: 28px; }
.auth-tabs a:last-child, .auth-tabs button:last-child { border-top-right-radius: 28px; }
.auth-tabs a.is-on, .auth-tabs button.is-on {
  color: #fff;
  background: linear-gradient(90deg, var(--auth-blue2), var(--auth-blue));
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 20px 24px;
}
.auth-intro {
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.35;
  color: rgba(255,255,255,.9);
  white-space: pre-line;
}
.auth-field { position: relative; height: 52px; width: 100%; }
.auth-field input {
  width: 100%;
  height: 100%;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 0 56px 0 16px;
  background: rgba(255,255,255,.1);
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 300;
  outline: none;
  box-shadow: 0 0 32.5px 16px rgba(0,0,0,.1);
}
.auth-field input::placeholder { color: #939393; }
.auth-field input:focus {
  border-color: #397cff;
  background: rgba(255,255,255,.15);
}
.auth-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #939393;
  cursor: pointer;
  display: grid;
  place-items: center;
  pointer-events: auto;
}
.auth-eye:hover { color: #fff; }
.auth-eye svg { pointer-events: none; }
.auth-social-label {
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}
.auth-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.auth-social a, .auth-social button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  pointer-events: auto;
}
.auth-submit {
  position: relative;
  margin-top: 4px;
  height: 56px;
  width: 100%;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(90deg, var(--auth-blue2), var(--auth-blue));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}
.auth-submit:hover { filter: brightness(1.1); }
.auth-submit img {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
}
.auth-msg { margin: 0; min-height: 1.25rem; text-align: center; font-size: 13px; font-weight: 600; color: #ff8d9f; }
.auth-msg.ok { color: #76f7f8; }
.auth-help { margin: 0; text-align: center; font-size: 14px; font-weight: 300; }
.auth-help a { color: #fff; font-weight: 600; text-decoration: none; pointer-events: auto; }
.auth-help a:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (min-width: 1536px) {
  .auth-stage {
    position: absolute;
    overflow: hidden;
    background: #02030a;
    min-height: 0;
  }
  .auth-stage-inner {
    position: relative;
    width: 2188px;
    height: 1179px;
    min-height: 0;
    display: block;
    padding: 0;
  }
  .auth-scene {
    display: block;
    position: absolute;
    inset: 0;
    width: 2188px;
    height: 1179px;
    max-width: none;
    object-fit: fill;
    pointer-events: none;
  }
  .auth-top {
    position: absolute;
    left: 258px;
    top: 152px;
    z-index: 2;
    margin: 0;
    justify-content: flex-start;
    gap: 28px;
  }
  .auth-chip { height: 54px; font-size: 20px; }
  .auth-chip-ico { width: 54px; height: 54px; }
  .auth-chip-ico .ring { inset: 2px; width: 50px; height: 50px; }
  .auth-chip-ico.is-support { width: 48px; height: 48px; }
  .auth-chip-ico.is-support .ring {
    inset: -4px;
    width: 56px;
    height: 56px;
  }
  .auth-chip-ico.is-support .ico {
    left: 14px;
    top: 12px;
    width: 18px;
    height: 21px;
  }
  .auth-logo {
    position: absolute;
    left: 241px;
    top: 436px;
    z-index: 2;
    margin: 0;
    width: 769px;
    height: 317px;
    max-width: none;
    max-height: none;
    object-fit: contain;
  }
  .auth-card {
    position: absolute;
    left: 1241px;
    top: 227px;
    z-index: 2;
    width: 535px;
    max-width: none;
    margin: 0;
    border-radius: 35px;
  }
  .auth-tabs {
    height: 56px;
    font-size: 24px;
  }
  .auth-tabs a:first-child, .auth-tabs button:first-child { border-top-left-radius: 35px; }
  .auth-tabs a:last-child, .auth-tabs button:last-child { border-top-right-radius: 35px; }
  .auth-form { padding: 28px 40px 32px; gap: 18px; }
  .auth-intro { font-size: 15px; }
  .auth-social-label { font-size: 20px; }
  .auth-submit { height: 54px; font-size: 24px; border-radius: 22px; }
}
