body .mac_pop_bg.mac_pop_bg_login {
  background: rgba(0, 0, 0, .68) !important;
  backdrop-filter: blur(8px);
}

body .mac_pop.mac_pop_login {
  background:
    radial-gradient(circle at 50% 0, rgba(45, 115, 210, .24), transparent 38%),
    linear-gradient(180deg, #0b1628 0%, #060d18 100%) !important;
  border: 1px solid rgba(218, 174, 92, .58) !important;
  border-radius: 24px !important;
  box-shadow: 0 0 42px rgba(45, 115, 210, .28), 0 22px 82px rgba(0, 0, 0, .68) !important;
  height: auto !important;
  max-height: calc(100vh - 36px) !important;
  max-width: calc(100vw - 32px) !important;
  overflow: hidden !important;
  padding: 0 !important;
  width: 480px !important;
}

body .mac_pop.mac_pop_login .pop_top {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 20 !important;
}

body .mac_pop.mac_pop_login .pop_top h2 {
  display: none !important;
}

body .mac_pop.mac_pop_login span.pop_close {
  background: rgba(255, 255, 255, .07) !important;
  border: 1px solid rgba(255, 255, 255, .28) !important;
  border-radius: 999px !important;
  cursor: pointer;
  height: 34px !important;
  margin: 0 !important;
  position: absolute !important;
  right: 24px !important;
  top: 22px !important;
  width: 34px !important;
  z-index: 30 !important;
}

body .mac_pop.mac_pop_login span.pop_close:before,
body .mac_pop.mac_pop_login span.pop_close:after {
  background: rgba(230, 238, 255, .88) !important;
  content: "";
  height: 16px !important;
  left: 16px !important;
  position: absolute;
  top: 8px !important;
  width: 2px !important;
}

body .mac_pop.mac_pop_login span.pop_close:before {
  transform: rotate(45deg);
}

body .mac_pop.mac_pop_login span.pop_close:after {
  transform: rotate(-45deg);
}

body .mac_pop.mac_pop_login .pop_content {
  background: transparent !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
}

#mac-ajax-auth-root.auth-ui {
  background: transparent !important;
  color: #eef3ff !important;
  padding: 0 !important;
}

#mac-ajax-auth-root.auth-ui .auth-shell,
#mac-ajax-auth-root.auth-ui-popup .auth-shell {
  background: transparent !important;
  padding: 0 !important;
}

#mac-ajax-auth-root .auth-app-dl-promo,
#mac-ajax-auth-root .mac-app-dl-bar,
#mac-ajax-auth-root .mac-app-dl-bar--auth-popup,
#mac-ajax-auth-root .mac_login .reg-ts {
  display: none !important;
}

#mac-ajax-auth-root .reg-w.auth-popup-form {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 30px 36px 26px !important;
  width: 100% !important;
}

#mac-ajax-auth-root .auth-member-head {
  margin: 0 0 28px;
  text-align: center;
}

#mac-ajax-auth-root .auth-member-crown {
  align-items: center;
  display: flex;
  gap: 0;
  justify-content: center;
  margin: 0 auto 18px;
}

#mac-ajax-auth-root .auth-member-crown__line {
  background: linear-gradient(90deg, transparent, rgba(218, 174, 92, .42));
  display: block;
  height: 1px;
  width: 76px;
}

#mac-ajax-auth-root .auth-member-crown__line:last-child {
  background: linear-gradient(90deg, rgba(218, 174, 92, .42), transparent);
}

#mac-ajax-auth-root .auth-member-crown__badge {
  align-items: center;
  background: linear-gradient(180deg, rgba(12, 26, 47, .98), rgba(6, 13, 24, .98));
  border: 1px solid rgba(218, 174, 92, .68);
  border-radius: 10px;
  box-shadow: 0 0 22px rgba(45, 115, 210, .45);
  color: #f2cf8d;
  display: inline-flex;
  font-size: 22px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  transform: rotate(45deg);
  width: 42px;
}

#mac-ajax-auth-root .auth-member-crown__badge span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: 0 0 14px rgba(242, 207, 141, .45);
  transform: rotate(-45deg);
}

#mac-ajax-auth-root .auth-member-head h2 {
  color: #f2cf8d;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1.12;
  margin: 0;
  text-shadow: 0 0 18px rgba(218, 174, 92, .35);
}

#mac-ajax-auth-root .auth-member-head p {
  color: rgba(220, 230, 255, .72);
  font-size: 15px;
  line-height: 1.6;
  margin: 10px 0 0;
}

#mac-ajax-auth-root.auth-ui-popup .auth-popup-form.mac_login .auth-panel-login .reg-group.auth-field {
  align-items: center;
  background: rgba(9, 20, 36, .82) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 12px !important;
  box-sizing: border-box;
  display: flex;
  height: 68px !important;
  line-height: normal !important;
  margin: 0 0 26px !important;
  min-height: 68px !important;
  padding: 0 !important;
  position: relative;
}

#mac-ajax-auth-root.auth-ui-popup .auth-popup-form.mac_login .auth-panel-login .reg-group.auth-field:focus-within {
  border-color: rgba(242, 207, 141, .75) !important;
  box-shadow: 0 0 0 3px rgba(242, 207, 141, .12), 0 0 24px rgba(45, 115, 210, .18) !important;
}

#mac-ajax-auth-root.auth-ui-popup .auth-popup-form.mac_login .auth-panel-login .reg-group.auth-field .reg-control {
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  flex: 1;
  font-size: 16px !important;
  height: 66px !important;
  line-height: 66px !important;
  min-width: 0;
  outline: 0;
  padding: 0 54px 0 66px !important;
  width: auto;
}

#mac-ajax-auth-root.auth-ui-popup .auth-popup-form.mac_login .auth-panel-login .reg-group.auth-field .reg-control::placeholder {
  color: rgba(220, 230, 255, .48) !important;
}

#mac-ajax-auth-root.auth-ui-popup .auth-popup-form.mac_login .auth-panel-login .reg-group.auth-field .reg-control:-webkit-autofill,
#mac-ajax-auth-root.auth-ui-popup .auth-popup-form.mac_login .auth-panel-login .reg-group.auth-field .reg-control:-webkit-autofill:hover,
#mac-ajax-auth-root.auth-ui-popup .auth-popup-form.mac_login .auth-panel-login .reg-group.auth-field .reg-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(9, 20, 36, .98) inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
  transition: background-color 9999s ease-out 0s !important;
}

#mac-ajax-auth-root .auth-login-icon {
  color: #e7bd70;
  height: 24px;
  left: 24px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  z-index: 2;
}

#mac-ajax-auth-root .auth-login-icon-user:before {
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 8px;
  left: 7px;
  position: absolute;
  top: 1px;
  width: 8px;
}

#mac-ajax-auth-root .auth-login-icon-user:after {
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  content: "";
  height: 10px;
  left: 3px;
  position: absolute;
  top: 13px;
  width: 16px;
}

#mac-ajax-auth-root .auth-login-icon-lock:before {
  border: 2px solid currentColor;
  border-radius: 4px;
  bottom: 1px;
  content: "";
  height: 13px;
  left: 4px;
  position: absolute;
  width: 16px;
}

#mac-ajax-auth-root .auth-login-icon-lock:after {
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  content: "";
  height: 10px;
  left: 7px;
  position: absolute;
  top: 1px;
  width: 10px;
}

#mac-ajax-auth-root.auth-ui-popup .auth-popup-form.mac_login .auth-pwd-eye {
  filter: sepia(1) saturate(1.8) hue-rotate(350deg) brightness(1.2);
  height: 22px !important;
  margin: 0 !important;
  opacity: .9;
  position: absolute !important;
  right: 22px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 22px !important;
}

#mac-ajax-auth-root .auth-options-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 2px 0 0;
}

#mac-ajax-auth-root .auth-remember {
  align-items: center;
  color: rgba(230, 238, 255, .86);
  cursor: pointer;
  display: inline-flex;
  font-size: 16px;
  gap: 12px;
  line-height: 1;
  position: relative;
  user-select: none;
}

#mac-ajax-auth-root .auth-remember input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

#mac-ajax-auth-root .auth-remember span {
  align-items: center;
  display: inline-flex;
  gap: 12px;
}

#mac-ajax-auth-root .auth-remember span:before {
  background: linear-gradient(180deg, #f6d58f 0%, #be873d 100%);
  border: 1px solid rgba(255, 236, 190, .78);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
  content: "";
  height: 24px;
  width: 24px;
}

#mac-ajax-auth-root .auth-remember input:checked + span:after {
  border: solid #13100a;
  border-width: 0 2px 2px 0;
  content: "";
  height: 11px;
  left: 8px;
  position: absolute;
  top: 4px;
  transform: rotate(45deg);
  width: 6px;
}

#mac-ajax-auth-root .auth-options-row .auth-forgot-link {
  color: #f2cf8d !important;
  font-size: 16px !important;
  text-decoration: none !important;
}

#mac-ajax-auth-root .auth-options-row .auth-forgot-link:hover {
  color: #ffe5aa !important;
}

#mac-ajax-auth-root .auth-actions {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 20px;
}

#mac-ajax-auth-root .auth-register {
  color: #f2cf8d !important;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none !important;
}

#mac-ajax-auth-root .auth-register span {
  display: inline-block;
  font-size: 28px;
  margin-left: 10px;
  transform: translateY(1px);
}

#mac-ajax-auth-root .auth-login-feedback {
  color: #f3b7bd;
  display: none;
  font-size: 14px;
  line-height: 1.5;
  margin: 14px 0 -18px;
  min-height: 21px;
  text-align: center;
}

#mac-ajax-auth-root .auth-login-feedback.is-visible {
  display: block;
}

#mac-ajax-auth-root .auth-login-feedback.is-success {
  color: #7ce8bd;
}

#mac-ajax-auth-root.auth-ui-popup .auth-popup-form.mac_login .login_form_submit.auth-login-btn {
  background: linear-gradient(180deg, #f6d58f 0%, #b98135 100%) !important;
  border: 1px solid rgba(255, 236, 190, .82) !important;
  border-radius: 14px !important;
  box-shadow: 0 0 22px rgba(242, 207, 141, .28), inset 0 1px 0 rgba(255, 255, 255, .45) !important;
  color: #14100a !important;
  cursor: pointer;
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 24px !important;
  font-weight: 700 !important;
  height: 64px !important;
  letter-spacing: 2px !important;
  line-height: 62px !important;
  margin: 0 !important;
  min-width: 210px;
  padding: 0 36px !important;
  text-align: center;
  width: auto !important;
}

#mac-ajax-auth-root.auth-ui-popup .auth-popup-form.mac_login .login_form_submit.auth-login-btn.is-loading,
#mac-ajax-auth-root.auth-ui-popup .auth-popup-form.mac_login .login_form_submit.auth-login-btn:disabled {
  cursor: wait !important;
  filter: saturate(.8) brightness(.88);
}

.mac_confirm_overlay {
  align-items: center !important;
  background: rgba(2, 8, 16, .76) !important;
  backdrop-filter: blur(8px);
  bottom: 0 !important;
  box-sizing: border-box;
  display: flex !important;
  justify-content: center !important;
  left: 0 !important;
  padding: 24px !important;
  position: fixed !important;
  right: 0 !important;
  top: 0 !important;
  z-index: 2147483600 !important;
}

.mac_confirm_dialog {
  background: radial-gradient(circle at 50% 0, rgba(31, 96, 168, .32), rgba(7, 18, 33, .97) 42%, rgba(8, 13, 20, .98)) !important;
  border: 1px solid rgba(221, 166, 65, .62) !important;
  border-radius: 18px !important;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .62), 0 0 0 1px rgba(75, 147, 255, .18) inset !important;
  box-sizing: border-box;
  color: #eef6ff !important;
  max-width: calc(100vw - 48px) !important;
  padding: 26px 24px 22px !important;
  position: relative !important;
  text-align: center !important;
  width: 420px !important;
}

.mac_confirm_close {
  align-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: #c6d0dd;
  cursor: pointer;
  display: flex;
  font-size: 22px;
  height: 30px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 30px;
}

.mac_confirm_icon {
  align-items: center;
  background: radial-gradient(circle, #fff7d7 0, #d7ad54 43%, rgba(255, 255, 255, .07) 44%);
  border: 1px solid rgba(221, 166, 65, .72);
  border-radius: 50%;
  color: #162033;
  display: flex;
  font-size: 22px;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  margin: 0 auto 16px;
  width: 58px;
}

.mac_confirm_message {
  color: #eef6ff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.65;
  margin: 0 auto 22px;
  max-width: 340px;
}

.mac_confirm_actions {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.mac_confirm_btn {
  border-radius: 10px;
  box-sizing: border-box;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  height: 44px;
  line-height: 1;
  padding: 0 14px;
}

.mac_confirm_btn_cancel {
  background: rgba(5, 22, 42, .76);
  border: 1px solid rgba(221, 166, 65, .75);
  color: #eef6ff;
}

.mac_confirm_btn_ok {
  background: linear-gradient(180deg, #ffd777, #e5a438);
  border: 1px solid rgba(255, 236, 190, .82);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
  color: #251705;
}

.mac_confirm_btn:hover,
.mac_confirm_close:hover {
  filter: brightness(1.06);
}

#mac-ajax-auth-root.auth-ui-popup .auth-popup-form.mac_login .login_form_submit.auth-login-btn:hover {
  background: linear-gradient(180deg, #ffe0a0 0%, #c78f3f 100%) !important;
}

#mac-ajax-auth-root.auth-ui-popup .mac_find,
#mac-ajax-auth-root.auth-ui-popup .mac_find_msg {
  box-sizing: border-box;
  padding: 42px 48px 38px !important;
}

#mac-ajax-auth-root.auth-ui-popup .mac_find .reg-group,
#mac-ajax-auth-root.auth-ui-popup .mac_find_msg .reg-group {
  background: rgba(9, 20, 36, .82) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 12px !important;
  height: 52px !important;
  min-height: 52px !important;
}

#mac-ajax-auth-root.auth-ui-popup .mac_find .reg-control,
#mac-ajax-auth-root.auth-ui-popup .mac_find_msg .reg-control {
  color: #fff !important;
  height: 50px !important;
  line-height: 50px !important;
}

#mac-ajax-auth-root.auth-ui-popup .mac_find .btn-sub,
#mac-ajax-auth-root.auth-ui-popup .mac_find_msg .btn-sub {
  background: linear-gradient(180deg, #f6d58f 0%, #b98135 100%) !important;
  border: 1px solid rgba(255, 236, 190, .82) !important;
  border-radius: 12px !important;
  color: #14100a !important;
}

@media (max-width: 640px) {
  body .mac_pop.mac_pop_login {
    border-radius: 24px !important;
    max-width: calc(100vw - 32px) !important;
    width: calc(100vw - 32px) !important;
  }

  body .mac_pop.mac_pop_login span.pop_close {
    right: 18px !important;
    top: 18px !important;
  }

  #mac-ajax-auth-root .reg-w.auth-popup-form,
  #mac-ajax-auth-root.auth-ui-popup .mac_find,
  #mac-ajax-auth-root.auth-ui-popup .mac_find_msg {
    padding: 30px 22px 26px !important;
  }

  #mac-ajax-auth-root .auth-member-head {
    margin-bottom: 26px;
  }

  #mac-ajax-auth-root .auth-member-head h2 {
    font-size: 30px;
    letter-spacing: 3px;
  }

  #mac-ajax-auth-root .auth-member-head p {
    font-size: 14px;
  }

  #mac-ajax-auth-root .auth-member-crown__line {
    width: 54px;
  }

  #mac-ajax-auth-root.auth-ui-popup .auth-popup-form.mac_login .auth-panel-login .reg-group.auth-field {
    height: 52px !important;
    margin-bottom: 20px !important;
    min-height: 52px !important;
  }

  #mac-ajax-auth-root.auth-ui-popup .auth-popup-form.mac_login .auth-panel-login .reg-group.auth-field .reg-control {
    font-size: 15px !important;
    height: 50px !important;
    line-height: 50px !important;
    padding-left: 56px !important;
  }

  #mac-ajax-auth-root .auth-login-icon {
    left: 20px;
  }

  #mac-ajax-auth-root .auth-options-row {
    gap: 14px;
  }

  #mac-ajax-auth-root .auth-remember,
  #mac-ajax-auth-root .auth-options-row .auth-forgot-link {
    font-size: 14px !important;
  }

  #mac-ajax-auth-root .auth-actions {
    gap: 16px;
    margin-top: 30px;
  }

  #mac-ajax-auth-root .auth-register {
    font-size: 18px;
    white-space: nowrap;
  }

  #mac-ajax-auth-root.auth-ui-popup .auth-popup-form.mac_login .login_form_submit.auth-login-btn {
    flex: 1 1 auto;
    font-size: 20px !important;
    height: 50px !important;
    line-height: 48px !important;
    min-width: 150px;
    padding: 0 24px !important;
  }
}
