/* GamezLoop auth page — adapted directly from the supplied original reference CSS. */

#auth,
#sign_footer {
  font-family: Tahoma, Arial, Verdana, sans-serif;
}

#auth {
  position: absolute;
  top: 50%;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  text-align: center;
}

#auth_form {
  width: 100%;
  max-width: 400px;
  min-width: 320px;
  min-height: 580px;
  margin-top: -300px;
  padding: 0 5px;
  display: inline-block;
}

#auth_content {
  position: relative;
  padding: 80px 5px 5px;
  margin-top: 30px;
  border-radius: 8px;
}

.woody {
  border: 1px solid #585ca3;
  background-color: rgba(76, 76, 197, 0.5);
  background-size: 600px 450px;
  box-shadow:
    0 1px 8px rgba(0, 0, 0, 0.5),
    inset 0 0 6px rgba(255, 255, 255, 0.2);
}

#auth_logo_block {
  width: 150px;
  display: inline-block;
}

#auth_logo {
  width: 150px;
  height: 120px;
  position: absolute;
  margin-top: -125px;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 150px 210px;
  background-image: url("../images/baselogo.png");
}

#sign_stats {
  height: 45px;
  color: #ffe8aa;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

#sign {
  position: relative;
  padding-top: 46px;
  color: #563c38;
  font-size: 14px;
  background-color: #eae5d9;
  border-radius: 8px 8px 5px 5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.sign_button {
  width: 50%;
  position: absolute;
  padding: 8px 2px 2px;
  margin: 0;
  border: 0;
  text-align: center;
  font: inherit;
  cursor: pointer;
  appearance: none;
}

#sign_login {
  left: 0;
}

#sign_reg {
  right: 0;
}

#sign_login.active {
  height: 60px;
  top: -10px;
  line-height: 40px;
  border-radius: 5px 5px 0 0;
  background-color: #eae5d9;
  box-shadow: none;
  z-index: 2;
}

#sign_reg.active {
  height: 60px;
  top: -10px;
  line-height: 60px;
  border-radius: 5px 5px 0 0;
  background-color: #eae5d9;
  box-shadow: none;
  z-index: 2;
}

#sign_login:not(.active) {
  height: 50px;
  top: 0;
  line-height: 30px;
  border-radius: 5px 0 0 0;
  background-color: #4568ff;
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

#sign_reg:not(.active) {
  height: 50px;
  top: 0;
  line-height: 40px;
  border-radius: 0 5px 0 0;
  background-color: #2da94b;
  box-shadow: inset 2px -2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.sign_button_text {
  display: inline-block;
  line-height: normal;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.sign_button.active .sign_button_text {
  color: #563c38;
}

.sign_button:not(.active) .sign_button_text {
  color: #fff;
}

.sign_content {
  padding: 10px;
}

#sign_content_login {
  padding-top: 5px;
}

#sign_content_reg {
  padding-top: 15px;
}

[hidden] {
  display: none !important;
}

#auth_account_info {
  padding: 6px 0 1px;
  float: right;
  font-weight: bold;
  font-size: 14px;
  line-height: 25px;
}

#reg_info_space {
  min-height: 20px;
  padding-top: 10px;
  text-align: center;
  font-size: 15px;
}

form {
  margin: 0;
}

.input_block {
  display: inline-block;
  position: relative;
}

.input_block input {
  width: 100% !important;
}

.input {
  height: 45px;
  color: #5348a4;
  font-family: Arial, sans-serif;
  font-weight: bold;
  border-radius: 4px;
  border: 2px solid #fff;
  background-color: #fff;
  padding: 4px 7px;
  margin: 5px 0;
  font-size: 16px;
  appearance: none;
}

.authform .input {
  color: #594b41;
  border: 1px solid #beaf8c;
}

.input::placeholder {
  color: #c8c2b4;
  opacity: 1;
}

.input:focus {
  border-color: #90613b;
}

.input_icon .input {
  padding-left: 38px;
  background-image: url("../images/ficons@2x.png");
  background-size: 20px 180px;
  background-repeat: no-repeat;
}

.input_icon.email .input {
  background-position: 10px 0;
}

.input_icon.password .input {
  background-position: 10px -45px;
}

.input_icon.nick .input {
  background-position: 10px -90px;
}

.button {
  height: 45px;
  border: none;
  border-radius: 4px;
  padding: 4px 7px;
  margin: 5px 0;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 16px;
  cursor: pointer;
  background-image: none;
  appearance: none;
  transition: background-color 0.2s;
}

.button.ui {
  background-color: #7e5c48;
}

.desktop .button.ui:hover {
  background-color: #9c6a4b;
}

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

input[type="checkbox"] {
  display: none;
}

label {
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  background-repeat: no-repeat;
  user-select: none;
}

input[type="checkbox"] + label.signlabel {
  width: 24px;
  height: 24px;
  line-height: 24px;
  border-radius: 4px;
  border: 1px solid #beaf8c;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: -100% -100%;
}

input[type="checkbox"]:checked + label.signlabel {
  background-position: -164px -11px;
}

.signlabel {
  background-image: url("../images/docicons@2x.png");
  background-size: 950px 270px;
}

.signlabel.space {
  margin: 8px 0;
}

#sign_remember {
  padding: 3px 3px 2px 8px;
  text-align: left;
}

#sign_accept {
  padding: 15px 3px 15px 8px;
  text-align: left;
  display: flow-root;
}

#sign_accept .signlabel {
  float: left;
  margin-right: 12px;
}

.sign_checkbox_text,
.sign_accept_text {
  color: #563c38;
  font-size: 14px;
  line-height: 24px;
}

.terms_chip,
.link-button {
  display: inline-block;
  padding: 3px 8px;
  border: 0;
  border-radius: 5px;
  color: #563c38;
  font: inherit;
  text-decoration: none;
  background-color: #fffaf2;
}

.link-button {
  cursor: pointer;
}

.desktop .terms_chip:hover,
.desktop .link-button:hover {
  color: #563c38;
  background-color: #fff;
}

#sign_recovery {
  padding: 13px 3px 8px;
  text-align: center;
}

.info_sign_red {
  padding: 3px 8px;
  margin: 0;
  font-size: 16px;
  color: #fff;
  text-align: center;
  background-color: #e45e5e;
  border: 1px solid #484d8a;
}

.info_sign_red.success {
  background-color: #2d9f50;
}

.captcha_mount:empty {
  display: none;
}

.captcha_mount:not(:empty) {
  width: 304px;
  min-height: 78px;
  margin: 5px auto;
}

/* Original registration flow: confirmation appears after accepting the terms. */
#register_form:not(:has(#reg_accept_flag:checked)) #register_submit,
#register_form:not(:has(#reg_accept_flag:checked)) #register_captcha_mount {
  display: none;
}

#sign_footer {
  padding: 15px 5px 10px;
}

#geo {
  display: inline-block;
  position: relative;
  z-index: 2;
}

#auth_geo_current {
  height: 26px;
  display: inline-block;
  margin-bottom: 5px;
}

#auth_geo_icon {
  width: 26px;
  height: 26px;
  float: left;
  background-image: url("../images/docicons@2x.png");
  background-size: 950px 270px;
  background-position: -112px -55px;
  background-repeat: no-repeat;
}

#auth_geo_content {
  height: 26px;
  float: left;
  padding-left: 6px;
  line-height: 24px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
  color: #bec4ff;
  font-size: 14px;
  font-weight: bold;
  font-family: Verdana, Arial, sans-serif;
}

#sign_footer_info {
  color: #7a75b5;
  font-size: 12px;
  line-height: 14px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}

@media
  (min-device-pixel-ratio: 1.2),
  (-webkit-min-device-pixel-ratio: 1.2),
  (min-resolution: 115dpi) {
  body {
    background-image: url("../images/tile_body@2x.png");
    background-size: 4px 4px;
  }

  #auth_logo {
    background-image: url("../images/baselogo@2x.png");
  }
}

@media (max-height: 580px) {
  #auth {
    top: 0;
  }

  #auth_form {
    margin-top: 0;
  }
}

@media (max-width: 340px) {
  #auth_form {
    min-width: 0;
  }
}


/* Google reCAPTCHA v2 */
.captcha_mount:empty {
  display: none;
}

.captcha_mount:not(:empty) {
  width: 304px;
  min-height: 78px;
  margin: 5px auto;
}

#register_form:not(:has(#reg_accept_flag:checked)) #register_submit,
#register_form:not(:has(#reg_accept_flag:checked)) #register_captcha_mount {
  display: none;
}


/* Original language popup */
#geo {
  display: inline-block;
  position: relative;
  z-index: 999999;
}

#auth_geo_popup {
  white-space: nowrap;
  position: absolute;
  left: -38px;
  bottom: 0;
  margin-bottom: 50px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

#auth_geo_popup[hidden] {
  display: none;
}

#auth_geo_list {
  position: relative;
  z-index: 10;
  text-align: left;
  min-width: 120px;
  padding: 5px;
  direction: ltr;
}

#auth_geo_list button {
  width: 100%;
  display: block;
  padding: 6px 10px;
  border: 0;
  color: #5658a8;
  font-size: 15px;
  font-weight: bold;
  font-family: Verdana, Arial, sans-serif;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
}

.desktop #auth_geo_list button:hover,
.desktop #auth_geo_list button:focus-visible {
  color: #fff;
  background-color: #5356cf;
}

.popup_arrow_b {
  width: 32px;
  height: 16px;
  position: absolute;
  background-image: url("../images/docicons@2x.png");
  background-size: 950px 270px;
  background-position: -59px -150px;
  background-repeat: no-repeat;
}

#geo_arrow {
  bottom: -9px;
  left: 35px;
}

#auth_geo_current {
  height: 26px;
  display: inline-block;
  margin: 0 0 5px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
}

#auth_geo_icon {
  width: 26px;
  height: 26px;
  float: left;
  background-image: url("../images/docicons@2x.png");
  background-size: 950px 270px;
  background-position: -112px -55px;
  background-repeat: no-repeat;
}

.desktop #auth_geo_current:hover #auth_geo_icon {
  background-position: -162px -55px;
}

#auth_geo_content {
  height: 26px;
  float: left;
  padding-left: 6px;
  line-height: 24px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
  color: #bec4ff;
  font-size: 14px;
  font-weight: bold;
  font-family: Verdana, Arial, sans-serif;
}

.desktop #auth_geo_current:hover #auth_geo_content {
  color: #f2f3ff;
}


/* Locale direction and fonts */
html[dir="ltr"] #auth,
html[dir="ltr"] #sign_footer {
  font-family: Verdana, Arial, sans-serif;
}

html[dir="rtl"] #auth,
html[dir="rtl"] #sign_footer {
  font-family: Tahoma, Arial, Verdana, sans-serif;
}

#auth_geo_list button[aria-current="true"] {
  background-color: #ececff;
}

.desktop #auth_geo_list button[aria-current="true"]:hover,
.desktop #auth_geo_list button[aria-current="true"]:focus-visible {
  color: #fff;
  background-color: #5356cf;
}
