html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: #000f25;
  background: #fff;
}

button,
input {
  font-family: inherit;
}

.login-container {
  display: flex;
  position: relative;
  height: 100%;
  background: #fff url("../static/freight-login/login-bg.jpg") right 0 no-repeat;
  background-size: cover;
  overflow: hidden;
}

.banner {
  position: relative;
  z-index: 10;
  flex: none;
  height: 100%;
  aspect-ratio: 880 / 1800;
}

.banner .imgs {
  height: 100%;
  overflow: hidden;
}

.banner .imgs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wrapper {
  position: relative;
  flex-grow: 1;
  min-width: 0;
}

.wrapper main {
  height: 100%;
}

.light-bg {
  position: absolute;
  left: 0;
  right: 0;
  height: 100%;
  transform-origin: 0% 0%;
  opacity: 1;
  pointer-events: none;
}

.logo-bg {
  position: absolute;
  height: 45%;
  width: 50%;
  bottom: 50%;
  left: 55%;
  overflow: hidden;
  pointer-events: none;
}

.logo-bg img {
  height: 100%;
}

header {
  display: flex;
  justify-content: right;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  line-height: 48px;
  padding: 8px 36px;
  box-sizing: border-box;
  z-index: 11;
}

.menu {
  display: flex;
  flex-direction: row;
}

.menu-item {
  position: relative;
  display: flex;
  padding: 0 16px;
  margin-right: 5px;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 32px;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition-duration: 0.3s;
  text-decoration: none;
}

.menu-item:hover {
  background: #f0f2f5;
  overflow: inherit;
}

.menu-item-text {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #404b5c;
  white-space: nowrap;
}

.menu-item-text img {
  height: 16px;
  margin-right: 9px;
}

.menu-item-detail {
  position: absolute;
  top: 36px;
  left: 0;
  opacity: 0;
  transform: translateY(5px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  background: #fff;
  transition-duration: 0.3s;
}

.menu-item:hover .menu-item-detail {
  opacity: 1;
  transform: translateY(0);
}

.menu-item-detail.information {
  width: 282px;
  padding: 8px 16px 0;
  font-size: 12px;
  color: #1c2026;
  line-height: 20px;
  box-sizing: border-box;
}

.information-item {
  line-height: 20px;
  margin-bottom: 8px;
}

.information-item span {
  color: #7e8694;
}

.menu-item-detail.app-download {
  padding: 13px;
}

.menu-item-detail.app-download img {
  display: block;
  width: 124px;
  height: 124px;
}

.form-wrapper {
  display: flex;
  position: relative;
  left: 50%;
  margin-left: -220px;
  width: 440px;
  height: 100%;
  align-items: center;
  z-index: 10;
}

.login-form {
  width: 100%;
  height: auto;
  border-radius: 8px;
  padding: 40px;
  box-sizing: border-box;
}

.login-form-title {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 38px;
  font-weight: 600;
  color: #000f25;
}

.login-tabs-header {
  position: relative;
}

.login-tabs-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #e4e7ed;
}

.login-tabs-item {
  position: relative;
  z-index: 1;
  display: inline-block;
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  font-weight: 500;
  color: #059e84;
}

.login-tabs-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: #059e84;
}

.input-wrapper {
  margin-top: 24px;
}

.login-input {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #e9eef0;
  border-radius: 4px;
  box-sizing: border-box;
}

.login-input:focus-within {
  border-color: #059e84;
}

.login-input .prefix,
.login-input .suffix img {
  width: 16px;
  height: 16px;
  flex: none;
}

.login-input input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0 8px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #000f25;
}

.login-input input::placeholder {
  color: #a8abb2;
}

.login-input .suffix {
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.forgot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 40px;
}

.forgot button {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  line-height: 22px;
  color: #059e84;
  cursor: pointer;
}

.login-submit {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 4px;
  background: #059e84;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.login-submit:hover {
  background: #06b880;
}

.login-message {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  min-width: 380px;
  padding: 11px 15px;
  box-sizing: border-box;
  border: 1px solid #fde2e2;
  border-radius: 4px;
  background: #fef0f0;
  color: #f56c6c;
  font-size: 14px;
  line-height: 1;
  transform: translateX(-50%);
}

.login-message[hidden] {
  display: none;
}

.login-message-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border-radius: 50%;
  background: #f56c6c;
  position: relative;
  flex: none;
}

.login-message-icon::before {
  content: "!";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

footer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 48px;
  line-height: 48px;
  color: #808792;
  font-size: 12px;
  text-align: center;
  z-index: 11;
}

footer .info {
  margin: 0 12px;
}

footer a {
  color: #404b5c;
  text-decoration: none;
}

footer a:hover {
  color: #06b880;
}

@media screen and (max-width: 960px) {
  .banner {
    display: none;
  }

  header {
    justify-content: center;
    padding: 8px 0;
  }

  .menu-item-text img {
    display: none;
  }

  footer {
    height: auto;
    line-height: 20px;
    padding-bottom: 10px;
  }

  footer .info {
    display: block;
    margin: 0;
  }
}

@media screen and (max-width: 480px) {
  .form-wrapper {
    left: 0;
    margin-left: 0;
    width: 100%;
    padding: 72px 16px 88px;
    box-sizing: border-box;
  }

  .login-form {
    padding: 24px 0;
  }
}
