:root {
  --brand-yellow: #ffe100;
  --brand-blue: #007bff;
  --brand-green: #43c95a;
  --text-main: #000000;
  --border-color: #dcdfe6;
  --border-focus: #909399;
  --error-color: #f56c6c;
  --left-w: 50%;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html,
body {
  width: 100%;
  min-height: 100%;
  background: #ffffff;
  color: var(--text-main);
  font-family: Arial, Helvetica, "Microsoft YaHei", "PingFang SC", sans-serif;
  overflow-x: hidden;
}

button, input, select { font-family: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

#app {
  width: 100%;
  min-height: 100vh;
}

.auth-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  background: #ffffff;
}

.auth-right {
  position: relative;
  width: 50%;
  flex: 0 0 50%;
  min-height: 100vh;
  background: #ffffff;
}

.lang-box {
  position: fixed;
  right: 4.48px;
  top: 1.68px;
  z-index: 1000;
}

.lang-btn {
  min-width: 47.04px;
  height: 16.8px;
  padding: 0 6.72px;
  border: 1px solid var(--border-color);
  border-radius: 1.68px;
  background: #ffffff;
  color: #111827;
  font-size: 7.28px;
  line-height: 15.68px;
  text-align: center;
}

.lang-menu {
  position: absolute;
  right: 6.72px;
  top: 5.04px;
  width: 79.52px;
  max-height: calc(100vh - 11.2px);
  overflow-y: auto;
  display: none;
  background: #ffffff;
  border: 1px solid #dcdfe6;
  border-radius: 2.24px;
  box-shadow: 0 1.12px 5.6px rgba(0,0,0,.16);
  overscroll-behavior: contain;
}

.lang-menu.is-open { display: block; }

.lang-item {
  width: 100%;
  height: 22.96px;
  border: 0;
  padding: 0 5.6px;
  display: flex;
  align-items: center;
  background: transparent;
  color: #333333;
  font-size: 7.84px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.lang-item:hover { background: #f5f7fa; }

.flag {
  position: relative;
  display: inline-block;
  width: 11.2px;
  min-width: 11.2px;
  height: 7.84px;
  margin-right: 3.92px;
  overflow: hidden;
  vertical-align: -1.12px;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  background: #eee;
}

.flag-us{background:repeating-linear-gradient(to bottom,#b22234 0 0.86px,#fff 0.86px 1.211px)}.flag-us:before{content:"";position:absolute;left:0;top:0;width:5.04px;height:4.256px;background:#3c3b6e}
.flag-jp{background:#fff}.flag-jp:before{content:"";position:absolute;left:50%;top:50%;width:4.48px;height:4.48px;background:#bc002d;border-radius:50%;transform:translate(-50%,-50%)}
.flag-kr{background:#fff}.flag-kr:before{content:"";position:absolute;left:3.36px;top:1.68px;width:4.48px;height:4.48px;border-radius:50%;background:linear-gradient(to bottom,#cd2e3a 0 50%,#0047a0 50%)}
.flag-tw{background:#fe0000}.flag-tw:before{content:"";position:absolute;left:0;top:0;width:5.04px;height:4.48px;background:#000095}.flag-tw:after{content:"✹";position:absolute;left:0.896px;top:-0.84px;color:#fff;font-size:4.48px;line-height:5.6px}
.flag-th{background:linear-gradient(to bottom,#a51931 0 16%,#fff 16% 32%,#2d2a4a 32% 68%,#fff 68% 84%,#a51931 84%)}
.flag-vn{background:#da251d}.flag-vn:after{content:"★";position:absolute;left:2.8px;top:-1.68px;color:#ff0;font-size:6.16px;line-height:8.96px}
.flag-fr{background:linear-gradient(to right,#0055a4 0 33.33%,#fff 33.33% 66.66%,#ef4135 66.66%)}
.flag-de{background:linear-gradient(to bottom,#000 0 33.33%,#dd0000 33.33% 66.66%,#ffce00 66.66%)}
.flag-ru{background:linear-gradient(to bottom,#fff 0 33.33%,#0039a6 33.33% 66.66%,#d52b1e 66.66%)}
.flag-es{background:linear-gradient(to bottom,#aa151b 0 25%,#f1bf00 25% 75%,#aa151b 75%)}
.flag-pt{background:linear-gradient(to right,#006600 0 40%,#ff0000 40%)}.flag-pt:after{content:"";position:absolute;left:3.64px;top:2.24px;width:2.8px;height:2.8px;border-radius:50%;background:#ffcc00}
.flag-it{background:linear-gradient(to right,#009246 0 33.33%,#fff 33.33% 66.66%,#ce2b37 66.66%)}
.flag-ae{background:linear-gradient(to right,#ff0000 0 25%,transparent 25%),linear-gradient(to bottom,#00732f 0 33.33%,#fff 33.33% 66.66%,#000 66.66%)}
.flag-tr{background:#e30a17}.flag-tr:before{content:"";position:absolute;left:2.8px;top:1.68px;width:3.92px;height:3.92px;border-radius:50%;box-shadow:-1.12px 0 0 0.896px #fff}.flag-tr:after{content:"★";position:absolute;left:6.16px;top:1px;color:#fff;font-size:3.36px;line-height:6.72px}
.flag-id{background:linear-gradient(to bottom,#ce1126 0 50%,#fff 50%)}
.flag-nl{background:linear-gradient(to bottom,#ae1c28 0 33.33%,#fff 33.33% 66.66%,#21468b 66.66%)}
.flag-il{background:linear-gradient(to bottom,#fff 0 18%,#0038b8 18% 28%,#fff 28% 72%,#0038b8 72% 82%,#fff 82%)}.flag-il:after{content:"✡";position:absolute;left:3.36px;top:1px;color:#0038b8;font-size:3.92px;line-height:6.72px}

.logo {
  text-align: center;
  font-size: 11.76px;
  line-height: 12.32px;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.45px;
  white-space: nowrap;
}

.logo .green { color: var(--brand-green); }

.logo-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.12px;
  margin-right: 2.24px;
  transform: translateY(-1px);
}

.logo-mark i {
  display: block;
  width: 1.68px;
  background: #111111;
  border-radius: 2.8px;
}

.logo-mark i:nth-child(1) { height: 3.36px; }
.logo-mark i:nth-child(2) { height: 5.6px; }
.logo-mark i:nth-child(3) { height: 7.84px; }

.toast {
  position: fixed;
  left: 50%;
  top: 13.44px;
  transform: translateX(-50%) translateY(-10.08px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  background: rgba(17,17,17,.9);
  color: #fff;
  padding: 5.6px 11.2px;
  border-radius: 3.36px;
  font-size: 7.84px;
  transition: opacity .25s, transform .25s;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}



html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .brand-copy,
html[dir="rtl"] .logo,
html[dir="rtl"] .register-title,
html[dir="rtl"] .page-title {
  direction: rtl;
}

html[dir="rtl"] .lang-box {
  right: auto;
  left: 4.48px;
}

html[dir="rtl"] .lang-menu {
  right: auto;
  left: 6.72px;
}

html[dir="rtl"] .flag {
  margin-right: 0;
  margin-left: 3.92px;
}

html[dir="rtl"] .login-register,
html[dir="rtl"] .register-bottom {
  text-align: left;
}

.lang-item span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}









.auth-guard-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f6f7fb;
  padding: 24px;
  font-family: Arial, Helvetica, sans-serif;
}
.auth-guard-card {
  width: min(360px, 92vw);
  background: #fff;
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 18px 46px rgba(15,23,42,.12);
}
.auth-guard-card h2 {
  margin: 12px 0 8px;
  color: #111;
  font-size: 20px;
}
.auth-guard-card p {
  margin: 0;
  color: #667085;
  line-height: 1.6;
  font-size: 14px;
}
.auth-guard-spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid #eef0f4;
  border-top-color: #ffe100;
  margin: 0 auto;
  animation: authGuardSpin .8s linear infinite;
}
@keyframes authGuardSpin { to { transform: rotate(360deg); } }



.toast,.toast.show{display:none!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;}



.toast,
.toast.show,
body .toast,
body .toast.show {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* DESKTOP_AUTH_LANGUAGE_PREVIOUS: match reference desktop language selector. */
@media (min-width: 901px) {
  body[data-route="login"] .lang-box,
  body[data-route="forgot-password"] .lang-box,
  body[data-route="register"] .lang-box,
  body[data-route="wallet-login"] .lang-box,
  body[data-route="demo"] .lang-box {
    right: 12px;
    top: 6px;
  }

  body[data-route="login"] .lang-btn,
  body[data-route="forgot-password"] .lang-btn,
  body[data-route="register"] .lang-btn,
  body[data-route="wallet-login"] .lang-btn,
  body[data-route="demo"] .lang-btn {
    min-width: 99px;
    height: 36px;
    padding: 0 14px;
    border-radius: 4px;
    font-size: 16px;
    line-height: 34px;
  }

  body[data-route="login"] .lang-menu,
  body[data-route="forgot-password"] .lang-menu,
  body[data-route="register"] .lang-menu,
  body[data-route="wallet-login"] .lang-menu,
  body[data-route="demo"] .lang-menu {
    right: 0;
    top: 40px;
    width: 170px;
    max-height: calc(100vh - 52px);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.16);
  }

  body[data-route="login"] .lang-item,
  body[data-route="forgot-password"] .lang-item,
  body[data-route="register"] .lang-item,
  body[data-route="wallet-login"] .lang-item,
  body[data-route="demo"] .lang-item {
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }

  body[data-route="login"] .flag,
  body[data-route="forgot-password"] .flag,
  body[data-route="register"] .flag,
  body[data-route="wallet-login"] .flag,
  body[data-route="demo"] .flag {
    width: 20px;
    min-width: 20px;
    height: 14px;
    margin-right: 7px;
  }
}

/* DESKTOP_AUTH_LANGUAGE_V402: shrink and align the login language button to the reference screenshot. */
@media (min-width: 901px) {
  body[data-route="login"] .lang-box {
    right: 8px !important;
    top: 4px !important;
  }

  body[data-route="login"] .lang-btn {
    min-width: 70px !important;
    height: 25px !important;
    padding: 0 10px !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    line-height: 23px !important;
  }

  body[data-route="login"] .lang-menu {
    right: 0 !important;
    top: 28px !important;
    width: 120px !important;
    max-height: calc(100vh - 40px) !important;
    border-radius: 4px !important;
  }

  body[data-route="login"] .lang-item {
    height: 29px !important;
    padding: 0 9px !important;
    font-size: 10px !important;
  }

  body[data-route="login"] .flag {
    width: 14px !important;
    min-width: 14px !important;
    height: 10px !important;
    margin-right: 5px !important;
  }
}
