/* Zeroback guest top buttons + login/join modals */

/* Top auth buttons */
body.zb-shell .user-info01.zb-guest {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
body.zb-shell .user-info01.zb-guest li {
  margin: 0;
  padding: 0;
  font-size: inherit !important;
}
body.zb-shell .zb-auth-btn,
body.zb-shell #login-btn1 {
  display: inline-block;
  width: 120px;
  height: 40px;
  line-height: 40px;
  margin-right: 5px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  font-weight: bold;
  font-size: 14px !important;
  color: #fff !important;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: inset 0 2px 0 0 rgb(255 255 255 / 30%);
  background: linear-gradient(to bottom, #cc0000 1%, #af0000 45%, #f60000 100%) !important;
  -webkit-text-fill-color: #fff !important;
  box-sizing: border-box;
}
body.zb-shell .zb-auth-btn:hover,
body.zb-shell #login-btn1:hover {
  filter: brightness(1.2);
  color: #fff !important;
}

/* Login modal */
body.zb-shell #login.modal {
  position: fixed !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  float: none !important;
  background: rgba(0, 0, 0, 0.8) !important;
  display: none;
  z-index: 100000 !important;
  align-items: unset;
  justify-content: unset;
}
body.zb-shell #login.modal.is-open {
  display: block !important;
}
body.zb-shell #login .modal_content {
  width: 640px;
  max-width: calc(100% - 24px);
  height: 500px;
  max-height: calc(100vh - 40px);
  background: #222 !important;
  border: 1px solid #444 !important;
  border-radius: 10px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  box-shadow: 0 0.2em 0.8em rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
body.zb-shell #login .logingirl {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 92%;
  width: auto;
  max-width: 58%;
  object-fit: contain;
  object-position: left bottom;
  pointer-events: none;
  z-index: 1;
}
body.zb-shell #login .modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  z-index: 9;
  font-size: 28px;
  color: #ff0000 !important;
  line-height: 1;
  text-decoration: none;
}
body.zb-shell #login .modal-close:hover {
  color: #ff6666 !important;
}

/* Critical: do NOT let layout.css #loginForm{width:100%} expand past the right column */
body.zb-shell #login #loginForm.lg_frm_arr,
body.zb-shell #login .lg_frm_arr {
  position: absolute !important;
  left: auto !important;
  right: 18px !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 220px !important;
  max-width: 38% !important;
  z-index: 2;
  padding: 28px 0 20px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  text-align: center;
  cursor: default;
  float: none !important;
}
body.zb-shell #login .frm-logo {
  display: block !important;
  width: 180px !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto 8px !important;
}
body.zb-shell #login .lg_frm_arr h4 {
  display: block !important;
  margin: 0 0 10px !important;
  padding: 8px 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-bottom: 2px solid #444;
  background: none !important;
  animation: none !important;
  float: none !important;
  height: auto !important;
  line-height: 1.3 !important;
  width: auto !important;
}
body.zb-shell #login #userid,
body.zb-shell #login #passwd {
  display: block !important;
  width: 100% !important;
  height: 44px !important;
  margin-top: 8px !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  background: #000 !important;
  border: 1px solid #444 !important;
  border-radius: 10px !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 14px !important;
  outline: none !important;
}
body.zb-shell #login #userid::placeholder,
body.zb-shell #login #passwd::placeholder {
  color: #888 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #888 !important;
}
body.zb-shell #login #userid:focus,
body.zb-shell #login #passwd:focus {
  border: 1px solid #ff0000 !important;
}
body.zb-shell #login #login-btn,
body.zb-shell #login #join-btn,
body.zb-shell #login #join-btn-anony {
  display: block !important;
  width: 100% !important;
  height: 44px !important;
  line-height: 44px !important;
  margin-bottom: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: bold !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration: none !important;
  text-align: center !important;
  cursor: pointer;
  box-sizing: border-box !important;
  box-shadow: inset 0 2px 0 0 rgb(255 255 255 / 30%);
  background: linear-gradient(to bottom, #cc0000 1%, #af0000 45%, #f60000 100%) !important;
  float: none !important;
}
body.zb-shell #login #login-btn {
  margin-top: 14px !important;
}
body.zb-shell #login #login-btn:hover,
body.zb-shell #login #join-btn:hover,
body.zb-shell #login #join-btn-anony:hover {
  filter: brightness(1.15);
  color: #fff !important;
}

/* Join modal */
body.zb-shell #join {
  background: rgba(0, 0, 0, 0.8) !important;
  z-index: 100000 !important;
}
body.zb-shell #join .join_wrap {
  width: 95%;
  max-width: 650px;
}
body.zb-shell #join .loginbox,
body.zb-shell #join .join_box {
  background: rgba(10, 10, 10, 0.95) !important;
  border: 1px solid #444 !important;
  border-radius: 10px;
  color: #fff !important;
}
body.zb-shell #join .join_box {
  padding: 28px 24px 20px !important;
  max-height: 80vh;
  overflow-y: auto;
}
body.zb-shell #join .login_title {
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  margin: 0 0 18px !important;
  padding: 0 0 12px !important;
  border-bottom: 2px solid #444;
  text-align: center;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  animation: none !important;
  float: none !important;
  height: auto !important;
}
body.zb-shell #join .join_title {
  color: #ccc !important;
  font-size: 13px !important;
  margin-bottom: 6px;
}
body.zb-shell #join .join_text {
  color: #888 !important;
  font-size: 11px !important;
}
body.zb-shell #join .login_input,
body.zb-shell #join select.login_input {
  background: #000 !important;
  border: 1px solid #444 !important;
  border-radius: 5px !important;
  color: #fff !important;
  height: 36px !important;
}
body.zb-shell #join .login_input::placeholder {
  color: #777 !important;
}
body.zb-shell #join .login_input:focus,
body.zb-shell #join select.login_input:focus {
  border: 1px solid #ff0000 !important;
  outline: none;
}
body.zb-shell #join .join_close.close_btn_cu {
  color: #ff0000 !important;
  font-size: 24px;
}
body.zb-shell #join .login_btn1,
body.zb-shell #join .login_btn2 {
  display: inline-block;
  width: 150px;
  max-width: 100%;
  height: 48px;
  line-height: 48px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 15px;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-align: center;
  box-shadow: inset 0 2px 0 0 rgb(255 255 255 / 30%);
  background: linear-gradient(to bottom, #cc0000 1%, #af0000 45%, #f60000 100%) !important;
}
body.zb-shell #join .login_btn2 {
  background: linear-gradient(to bottom, #555 1%, #333 45%, #444 100%) !important;
}
body.zb-shell #join .login_btn_box2 ul {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
body.zb-shell #join .login_btn_box2 li {
  width: auto !important;
}

@media screen and (max-width: 1023px) {
  body.zb-shell .zb-auth-btn,
  body.zb-shell #login-btn1 {
    width: auto;
    min-width: 0;
    padding: 0 10px;
    height: 34px;
    line-height: 34px;
    font-size: 12px !important;
    margin-right: 0;
  }
}

@media screen and (max-width: 720px) {
  body.zb-shell .zb-auth-btn,
  body.zb-shell #login-btn1 {
    width: auto;
    min-width: 0;
    padding: 0 8px;
    height: 32px;
    line-height: 32px;
    font-size: 11px !important;
    margin-right: 0;
  }
  body.zb-shell .user-info01.zb-guest > li:last-child .zb-auth-btn {
    /* keep 무기명가입 readable but compact */
    padding: 0 6px;
  }
  body.zb-shell #login .modal_content {
    width: 94%;
    height: auto;
    min-height: 420px;
  }
  body.zb-shell #login .logingirl {
    display: none !important;
  }
  body.zb-shell #login #loginForm.lg_frm_arr,
  body.zb-shell #login .lg_frm_arr {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 40px 20px 24px !important;
  }
}
