@font-face {
  font-family: "CrystalBetUni-Medium";
  src: url("assets/fonts/crystalbetuni-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "cb-icons";
  src: url("assets/fonts/cb-icons.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: #141414;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "CrystalBetUni-Medium", -apple-system, BlinkMacSystemFont, sans-serif;
  user-select: none;
}

#main {
  width: 100%;
  max-width: 414px;
  margin: 0 auto;
  min-height: 100vh;
  background: #141414;
  position: relative;
  padding-top: 54px;
}

@media (min-width: 415px) {
  #main { box-shadow: 0 0 40px rgba(0, 0, 0, 0.45); }
}

/* ── Header ── */
.header-shadow {
  width: 100%;
  max-width: 414px;
  height: 54px;
  margin: 0 auto;
  background: #1a1b1c;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

#main.CbMobileShortLogo .header_logo {
  background: url("assets/img/cb.svg") no-repeat center;
  background-size: 40px 22px;
  width: 40px;
  height: 22px;
  display: block;
  position: absolute;
  top: 16px;
  left: calc(50% - 20px);
  text-decoration: none;
}

.header_login {
  display: block;
  width: 72px;
  height: 32px;
  text-align: center;
  position: absolute;
  text-decoration: none;
  font-family: inherit;
  font-size: 12px;
  color: #fde053;
  right: 12px;
  top: 11px;
  border: 1px solid #555;
  border-radius: 2px;
  line-height: 30px;
}

/* ── Content ── */
.content {
  width: 100%;
  background: #fff;
}

.h10 { height: 10px; }

.login-header-container {
  background: #fff;
}

.login-header-container .login-popup-warper,
.login-header-container .login-popup-or-warper {
  padding: 0 16px;
}

.login-header-container.small .login-header {
  padding: 0;
  height: 55px;
  line-height: 55px;
  text-align: center;
}

.login-header-container.small .login-div-title {
  font-size: 14px;
  color: #999;
}

.login-header-container.small .login-div-description {
  display: none;
}

.login_input {
  position: relative;
  margin-bottom: 10px;
}

.login_input input {
  width: 100%;
  height: 52px;
  padding-left: 36px;
  padding-right: 108px;
  border: 1px solid #d8d8d8;
  border-radius: 2px;
  background: #fff;
  color: #333;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.login_input input::placeholder { color: #bbb; }

.login_input.error input {
  border-color: #e53935;
  background: #fff5f5;
}

.login-header-container .login_input.pass input {
  padding-right: 152px;
}

.login_input.user::after {
  content: "";
  position: absolute;
  background: url("assets/img/header_login_gray.svg") no-repeat center;
  width: 12px;
  height: 12px;
  background-size: 12px 12px;
  top: 20px;
  left: 16px;
  pointer-events: none;
}

.login_input.pass::after {
  content: "";
  position: absolute;
  background: url("assets/img/lock.svg") no-repeat center;
  width: 11px;
  height: 13px;
  background-size: 11px 13px;
  top: 19px;
  left: 18px;
  pointer-events: none;
}

.login_name_recover,
.login_pass_recover {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 100px;
  height: 44px;
  background: #e6e6e6;
  color: #999;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 1px;
  line-height: 44px;
  text-align: center;
  text-decoration: none;
  border-radius: 2px;
}

.login-header-container .show-password {
  position: absolute;
  top: 0;
  right: 108px;
  width: 44px;
  height: 52px;
  background: none;
  border: none;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.login-header-container .show-password::after {
  content: "\e8d5";
  font-family: "cb-icons";
  color: #ccc;
  line-height: 52px;
  font-size: 11px;
}

.login-header-container .show-password.show::after {
  content: "\e891";
}

.login_bt button {
  width: 100%;
  height: 52px;
  margin-top: 10px;
  background: #ffdd33;
  color: #262000;
  font-family: inherit;
  font-size: 14px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.login_bt button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.login_or {
  margin: 0 auto;
  font-size: 14px;
  color: #999;
  text-align: center;
  padding-top: 20px;
  position: relative;
}

.login_or::before,
.login_or::after {
  content: "";
  display: block;
  height: 1px;
  width: calc(50% - 30px);
  background: #d8d8d8;
  position: absolute;
  top: 30px;
}

.login_or::before { left: 0; }
.login_or::after { right: 0; }

.login_register {
  display: block;
  width: 100%;
  height: 52px;
  margin: 18px auto 10px;
  line-height: 52px;
  background: #33b52a;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  border-radius: 2px;
}

.login-popup-or-warper {
  padding-bottom: 20px;
}
