* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; font-family: Arial, "Microsoft YaHei", sans-serif; background: #000 url("../../resource/login/bg.jpg") center top / cover no-repeat; }
a { color: #9f1e27; text-decoration: none; }
.tw-login-page { position: relative; width: 100%; height: 100%; min-height: 520px; overflow: hidden; }
.tw-login-bg { position: absolute; inset: 0; background: #000 url("../../resource/login/bg.jpg") center top / cover no-repeat; }
.tw-login-page:after { content: ""; display: none; }
.tw-login-logo { position: absolute; z-index: 2; left: 50%; top: 22%; width: 150px; transform: translate(-50%, -120%); text-align: center; }
.tw-login-logo img { max-width: 100%; display: block; margin: 0 auto; }
.tw-card { display: none; position: absolute; z-index: 3; left: 50%; top: 50%; width: 340px; min-height: 292px; padding: 18px 14px 20px; transform: translate(-50%, -50%); border-radius: 10px; background: #fff; box-shadow: 0 12px 34px rgba(0,0,0,.35); }
.tw-card.is-active { display: block; }
.tw-card h1 { margin: 2px 0 17px; text-align: center; color: #f4b400; font-size: 20px; font-weight: 400; line-height: 1; }
.tw-back { position: absolute; left: 12px; top: 17px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: #f7bd0b; color: #fff; font-size: 22px; line-height: 18px; padding: 0; cursor: pointer; }
.tw-account-wrap { position: relative; margin: 11px 0; }
.tw-account-wrap .tw-field { margin: 0; }
.tw-field { position: relative; display: flex; align-items: center; height: 36px; margin: 11px 0; border-radius: 4px; background: #f7f4f7; overflow: hidden; }
.tw-field label { flex: 0 0 66px; padding-left: 14px; color: #111; font-size: 14px; }
.tw-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #333; font-size: 14px; }
.tw-field button { position: relative; flex: 0 0 40px; height: 100%; border: 0; background: transparent; color: #565656; font-size: 0; cursor: pointer; }
.tw-select:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 12px;
  margin: -6px 0 0 -10px;
  background: url("../assets/xialjiantou.png") center center / contain no-repeat;
}
.tw-eye:before {
  display: none;
}
.tw-eye:after {
  display: none;
}
.tw-eye.material-icons {
  color: #666;
  font-size: 25px;
  line-height: 36px;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}
.tw-account-list {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 36px;
  z-index: 8;
  max-height: 104px;
  overflow-y: auto;
  border-top: 1px solid #e5e1e5;
  border-radius: 0 0 4px 4px;
  background: #f7f4f7;
  box-shadow: 0 8px 16px rgba(0,0,0,.12);
}
.tw-account-list.is-open { display: block; }
.tw-account-list button {
  display: block;
  width: 100%;
  height: 34px;
  padding: 0 50px 0 14px;
  border: 0;
  border-bottom: 1px solid #e5e1e5;
  background: transparent;
  color: #111;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.tw-account-list button:hover { background: #fff; }
.tw-row { display: flex; align-items: center; justify-content: space-between; margin: 8px 2px 16px; color: #555; font-size: 14px; }
.tw-check { display: flex; align-items: center; gap: 4px; }
.tw-check input { accent-color: #9f1e27; }
.tw-submit { width: 100%; height: 41px; border: 0; border-radius: 4px; background: #f8bd08; color: #fff; font-size: 20px; letter-spacing: 0; cursor: pointer; }
.tw-submit:active { transform: translateY(1px); }
.tw-links { display: flex; justify-content: space-between; margin-top: 16px; padding: 0 10px; color: #555; font-size: 14px; }
.tw-links a { color: #555; }
.tw-loading-text { position: absolute; z-index: 2; left: 0; bottom: 9%; width: 100%; text-align: center; color: #b5a900; font-size: 20px; }
#tw-toast { display: none; position: absolute; z-index: 10; left: 50%; top: 64%; max-width: 82%; padding: 9px 14px; transform: translateX(-50%); border-radius: 4px; color: #fff; background: rgba(0,0,0,.72); font-size: 14px; text-align: center; }
@media (min-width: 768px) and (orientation: landscape) {
  .tw-login-bg { background-image: url("../../resource/login/bg_hd360.jpg"); background-position: center center; background-size: 100% 100%; }
  .tw-card { top: 50%; left: 50%; width: 340px; }
  .tw-loading-text { bottom: 9%; }
}
@media (max-width: 767px), (orientation: portrait) {
  .tw-login-page { min-height: 520px; }
  .tw-login-bg { left: 50%; width: 100%; max-width: 580px; transform: translateX(-50%); background-image: url("../../resource/login/bg.jpg"); background-position: center top; background-size: cover; }
  .tw-card { width: 88%; max-width: 340px; top: 48%; }
  .tw-login-logo { top: 20%; }
  .tw-loading-text { bottom: 6%; }
}
@media (max-height: 560px) {
  .tw-login-logo { display: none; }
  .tw-card { top: 46%; }
  .tw-loading-text { bottom: 5%; }
}
