* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 960px;
  height: 100%;
  margin: 0;
}

.accessGateBody {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  background: #fbf8df;
  color: #6f5b29;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

.accessGateHeader {
  position: relative;
  height: 92px;
  flex: none;
  overflow: hidden;
  border-bottom: 1px solid rgba(151, 110, 26, .45);
  background: linear-gradient(100deg, #9b7b39 0, #cda62e 34%, #f3d968 57%, #b79028 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .4);
}

.accessGateHeader::before,
.accessGateHeader::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 244, 173, .18);
  transform: rotate(20deg);
}

.accessGateHeader::before {
  top: -250px;
  left: 260px;
  width: 540px;
  height: 300px;
}

.accessGateHeader::after {
  top: -150px;
  right: -140px;
  width: 620px;
  height: 220px;
}

.accessGateHeaderInner {
  position: relative;
  z-index: 1;
  display: flex;
  width: 980px;
  height: 100%;
  margin: auto;
  align-items: center;
}

.accessGateBrand {
  width: 190px;
  color: #fff6c2;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 3px;
  text-shadow: 0 2px 1px #7e5e17;
}

.accessGateBanks {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #fff9d8;
  font-size: 15px;
  text-shadow: 0 1px rgba(104, 72, 8, .45);
}

.accessGateMain {
  position: relative;
  min-height: 390px;
  flex: 1;
}

.accessGateForm {
  position: absolute;
  top: 185px;
  left: 50%;
  width: 720px;
  transform: translateX(-50%);
}

.accessGateSearchRow {
  display: flex;
  width: 100%;
  height: 54px;
  border-radius: 2px;
  box-shadow: 0 2px 9px rgba(114, 89, 28, .18);
}

.accessGateSearchRow input {
  min-width: 0;
  padding: 0 22px;
  flex: 1;
  border: 1px solid #d6c788;
  border-right: 0;
  outline: none;
  background: #fff;
  color: #4c4c4c;
  font-size: 17px;
}

.accessGateSearchRow button {
  width: 132px;
  flex: none;
  border: 0;
  background: #ed4036;
  color: #fff;
  cursor: pointer;
  font-size: 17px;
}

.accessGateSearchRow button:hover {
  background: #d9362d;
}

.accessGateSearchRow button:disabled {
  background: #c98b87;
  cursor: wait;
}

.accessGateCaptchaRow {
  display: flex;
  margin-top: 22px;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.accessGateCaptchaRow img {
  display: block;
  flex: none;
  border: 1px solid #c39c3d;
}

.accessGateCaptchaRefresh {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.accessGateCaptchaRow input {
  width: 150px;
  height: 42px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid #d6c788;
  outline: none;
  background: #fff;
  font-size: 15px;
}

.accessGateMessage {
  min-height: 22px;
  margin: 12px 0 0;
  color: #846f35;
  font-size: 14px;
  text-align: center;
}

.accessGateMessage.is-error {
  color: #c62828;
}

.accessGateFooter {
  position: relative;
  height: 155px;
  flex: none;
  background: linear-gradient(180deg, rgba(252, 248, 221, 0), #e6bd45);
}

.accessGateSkyline {
  position: absolute;
  inset: 24px 0 0;
  background:
    linear-gradient(165deg, transparent 49.4%, rgba(180, 136, 28, .25) 50%, transparent 50.6%) 0 0 / 160px 80px,
    linear-gradient(15deg, transparent 49.4%, rgba(180, 136, 28, .18) 50%, transparent 50.6%) 0 0 / 210px 100px;
}

.accessGateSkyline::after {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  height: 1px;
  content: "";
  background: rgba(136, 98, 15, .45);
  box-shadow: 0 -18px rgba(162, 119, 20, .18), 0 -36px rgba(162, 119, 20, .1);
}

@media (max-width: 767px) {
  html,
  body {
    min-width: 0;
    min-height: 100%;
  }

  .accessGateBody {
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .accessGateHeader {
    height: auto;
    min-height: 136px;
  }

  .accessGateHeaderInner {
    display: block;
    width: 100%;
    height: auto;
    padding: 14px 12px 13px;
  }

  .accessGateBrand {
    width: 100%;
    margin-bottom: 12px;
    text-align: center;
    font-size: 29px;
  }

  .accessGateBanks {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    font-size: 14px;
    text-align: center;
  }

  .accessGateBanks span {
    min-width: 0;
    padding: 8px 2px;
    white-space: nowrap;
  }

  .accessGateMain {
    display: flex;
    min-height: 360px;
    padding: 70px 16px 34px;
    align-items: flex-start;
    justify-content: center;
  }

  .accessGateForm {
    position: static;
    width: 100%;
    max-width: 520px;
    transform: none;
  }

  .accessGateSearchRow {
    height: 52px;
  }

  .accessGateSearchRow input {
    width: 1%;
    padding: 0 14px;
    font-size: 16px;
  }

  .accessGateSearchRow button {
    width: 104px;
    font-size: 16px;
  }

  .accessGateCaptchaRow {
    display: grid;
    width: min(100%, 310px);
    margin: 20px auto 0;
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .accessGateCaptchaRow input {
    width: 100%;
  }

  .accessGateFooter {
    height: 120px;
  }
}

@media (max-width: 359px) {
  .accessGateMain {
    padding-right: 10px;
    padding-left: 10px;
  }

  .accessGateSearchRow button {
    width: 92px;
  }

  .accessGateCaptchaRow {
    width: 100%;
  }
}

@media (max-height: 680px) and (min-width: 768px) {
  .accessGateForm {
    top: 120px;
  }

  .accessGateFooter {
    height: 110px;
  }
}
