.modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.2);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.modal_mask {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.modal_layer {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
}

.modal_layer_title {
  background-image: linear-gradient(#6f352d, #9a5340);
  background-color: #be3d1a;
  height: 5em;
  display: flex;
  justify-content: center;
  align-items: center;
  /* padding-left: 2em; */
}

.modal_layer_title img {
  height: 80%;
}

.modal_layer_body {
  padding: 1em 2em;
  background-color: #ffffff;
}

.modal_form {
}

.modal_form_item {
  width: 20em;
  margin-bottom: 1em;
  position: relative;
}

.modal_flex {
  position: relative;
  padding-right: 90px;
}

.modal_form_item_btn {
  cursor: pointer;
  font-size: 0.8em;
  color: #999999;
  flex: none;
  margin-left: 5px;
  cursor: pointer;
  display: inline-block;
  /* display: flex;
  justify-content: center;
  align-items: center; */
  border-radius: 3px;
  height: 36px;
  margin-top: 2px;
  position: absolute;
  right: 0;
  top: 0;
}

.modal_form_item_btn_inner {
  border: 1px solid #999999;
  width: 85px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  transition: all 0.3s;
}

.modal_form_item_btn_inner:hover {
  color: #be3d1a;
  border-color: #be3d1a;
}

.modal_form_item_btn .imgAuthCodeContent {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
}

.modal_form_item_btn .imgAuthCodeContent svg {
  width: 100%;
  height: 100%;
}

.modal_platform {
  display: flex;
}

.modal_platform svg {
  width: 2em;
  height: 2em;
  transition: color 0.3s;
}

.modal_platform .hover svg {
  color: #be3d1a;
}

.modal_platform .active svg {
  color: #be3d1a;
}

.modal_platform .ios {
  height: 40px;
  border: 1px solid #ababab;
  border-radius: 2px;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
  transition: border-color 0.3s;
  cursor: pointer;
}

.modal_platform .ios::after {
  content: "iOS";
  display: inline-block;
  font-weight: bold;
  font-size: 12px;
  text-align: center;
  color: #000000;
  transition: color 0.3s, width 0.3s, margin-right 0.3s, padding 0.3s;
  white-space: nowrap;
  width: 0;
  box-sizing: content-box;
  overflow: hidden;
}

.modal_platform .ios.hover {
  border-color: #be3d1a;
}

.modal_platform .ios.hover::after {
  width: 25px;
  margin-left: 3px;
  color: #be3d1a;
}

.modal_platform .ios.active {
  border-color: #be3d1a;
}

.modal_platform .android {
  height: 40px;
  border: 1px solid #ababab;
  border-radius: 2px;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: border-color 0.3s;
  cursor: pointer;
}

.modal_platform .android::after {
  content: "Android";
  display: inline-block;
  font-weight: bold;
  font-size: 12px;
  text-align: center;
  color: #000000;
  transition: color 0.3s, width 0.3s, margin-right 0.3s, padding 0.3s;
  white-space: nowrap;
  width: 0;
  box-sizing: content-box;
  overflow: hidden;
}

.modal_platform .android.hover {
  border-color: #be3d1a;
}

.modal_platform .android.hover::after {
  width: 50px;
  margin-left: 3px;
  color: #be3d1a;
}

.modal_platform .android.active {
  border-color: #be3d1a;
}

.modal_form_item input {
  border: none;
  outline: none;
  height: 40px;
  width: 100%;
  border-bottom: 1px solid #000000;
  font-size: 1.1em;
  color: #666666;
  transition: border-color 0.3s;
}

.modal_form_item input:focus {
  border-color: #be3d1a;
}

.modal_actions {
  display: flex;
  justify-content: center;
}

.modal_actions_btn {
  border: 1px solid #999999;
  border-radius: 3px;
  color: #999999;
  padding: 0.4em 1.6em;
  transition: all 0.3s;
  cursor: pointer;
}

.modal_actions_btn:hover {
  color: #be3d1a;
  border-color: #be3d1a;
}

.modal_actions_btn.submit {
  margin-right: 1em;
}
