html,
body {
  min-height: 100vh;
  height: 100%;
}
body {
  height: 100%;
  width: 100%;
  background-color: #414f57;
  background-image: -webkit-gradient(linear, left bottom, left top, from(#accbee), to(#e7f0fd));
  background-image: linear-gradient(to top, #accbee 0%, #e7f0fd 100%);
  background-repeat: no-repeat;
  background-size: cover, cover;
  background-attachment: fixed, fixed, fixed;
}
#app {
  min-width: 600px;
}
#app .root {
  min-height: 100vh;
  height: 750px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
#app .panel {
  margin-top: -20px;
  width: 520px;
  height: 100%;
  max-height: 500px;
  border-radius: 4px;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
  background-color: white;
  overflow: hidden;
}
#app .panel .panel-heading {
  border-bottom-color: transparent;
  padding-bottom: 0;
  background-color: #fff;
}
#app .panel .panel-heading .ca-logo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding-top: 30px;
}
#app .panel .panel-heading .ca-logo img {
  height: 30px;
}
#app .panel .panel-heading .ca-title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: 14px;
  margin-bottom: 20px;
  font-size: 24px;
  letter-spacing: 1px;
  position: relative;
}
#app .panel .panel-heading .ca-title .divider {
  width: 250px;
  height: 1px;
  background-color: #f4f4f4;
  border-radius: 2px;
  position: absolute;
  top: 9px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}
#app .panel .panel-heading .ca-title .txt {
  position: relative;
  margin-bottom: 5px;
  background-color: #fff;
  font-size: 12px;
  color: #999;
  width: 158px;
  text-align: center;
  z-index: 1;
}
#app .panel .panel-heading .ca-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
#app .panel .panel-heading .ca-nav > li:not(.active) > a {
  color: #000;
}
#app .panel .panel-heading .ca-nav li > a {
  height: 100%;
  font-size: 12px;
}
#app .panel .panel-heading .ca-nav li.active::after {
  content: '';
  position: absolute;
  border: 4px solid #18a0d5;
  bottom: -8px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
}
#app .panel .panel-heading .ca-nav li.active > a {
  background-color: #18a0d5;
}
#app .panel .panel-body {
  min-height: 265px;
  height: 265px;
  padding-top: 20px;
  padding-bottom: 20px;
  overflow: hidden;
}
#app .panel .panel-body .control-label {
  padding-right: 0;
  font-size: 13px;
}
#app .panel .panel-body .control-label + .col-sm-8 {
  padding-left: 10px;
}
#app .panel .panel-body .control-label + .col-sm-5 {
  padding: 0 5px 0 10px;
}
#app .panel .panel-body .login-secret-box .qrimg {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
}
#app .panel .panel-body .login-secret-box .qrimg .form-control {
  max-width: 200px;
  width: 200px;
  margin-right: 5px;
}
#app .panel .panel-body .login-secret-box .qrimg .img {
  width: 100%;
}
#app .panel .panel-body .form-horizontal {
  margin-top: 30px;
}
#app .panel .panel-body .form-horizontal .btn {
  width: 100%;
  min-width: 80px;
  margin-top: 10px;
  outline: none;
  background-color: #18a0d5;
  border-color: transparent;
  padding: 8px 12px;
  letter-spacing: 2px;
}
#app .panel .panel-body .form-horizontal .btn.btn-primary:focus {
  border-color: #122b40 !important;
}
#app .panel .panel-body .form-horizontal .control-label {
  font-weight: 400;
  padding-left: 10px;
}
#app .panel .panel-body #qrcode,
#app .panel .panel-body #qrcode2 {
  margin: 0px auto 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 180px;
  height: 180px;
}
#app .panel .panel-body .qrcode-desc {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 12px;
}
#app .panel .panel-body .qrcode-text > p {
  margin-bottom: 0;
}
#app .panel .other-login-mode {
  margin: 0px 20px 20px;
  position: relative;
  text-align: center;
  display: block;
}
#app .panel .other-login-mode .other-area span {
  display: inline-block;
  background: #fff;
  z-index: 2;
  position: relative;
  padding: 0 10px;
  line-height: 14px;
  color: #999;
  font-size: 12px;
}
#app .panel .other-login-mode .other-area::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 0;
  overflow: hidden;
  border-bottom: 1px dashed #eeeeee;
  top: 10px;
  left: 0;
  z-index: 0;
}
#app .panel .other-login-mode .other-login {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-top: 10px;
  font-size: 0;
  text-justify: justify;
}
#app .panel .other-login-mode .other-login .other-login-item {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  text-align: center;
  font-size: 12px;
}
#app .panel .other-login-mode .other-login .other-login-item + .other-login-item {
  border-left: 1px solid #eeeeee;
}
#app .panel .other-login-mode .other-login .other-login-item .link {
  color: #000;
  text-decoration: none;
}
#app .panel .panel-footer {
  text-align: center;
  position: relative;
  padding: 0;
  background-color: #fff;
  border-top: 1px solid #f5f5f5;
}
#app .panel .panel-footer span.triangle {
  position: absolute;
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-left: 1px solid #f5f5f5;
  border-top: 1px solid #f5f5f5;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
  left: 50%;
  top: -4px;
  margin-left: -4px;
}
#app .panel .panel-footer a.link {
  font-family: sans-serif;
  display: block;
  padding: 10px 15px;
  position: relative;
  z-index: 2;
  font-size: 12px;
  color: #666;
  text-decoration: none;
}
.toast.toast-error {
  background-color: #a9a9a9;
  opacity: 1;
}
.toast.toast-error .toast-message {
  color: #fff;
}
@media (max-width: 767px) {
  #app {
    width: 100% !important;
    min-width: 100% !important;
  }
  #app .root {
    height: 100% !important;
  }
  #app .panel {
    width: 100% !important;
    max-height: 100% !important;
    min-width: 300px !important;
    margin-top: 20px !important;
  }
  #app .panel .ca-nav > li > a {
    font-size: 12px;
    padding: 8px 6px;
  }
  #app .panel .panel-body {
    height: 330px;
    min-height: 330px !important;
    padding-left: 30px;
    padding-right: 30px;
  }
  #app .panel .panel-body .form-horizontal {
    margin-top: 10px !important;
  }
}
@media (max-width: 480px) {
  .login-secret-box .qrimg .form-control {
    max-width: 160px !important;
  }
}
#toast-container > .toast.toast-error {
  padding-left: 15px !important;
  background-color: #fff !important;
  background-image: none !important;
  opacity: 1;
}
#toast-container > .toast.toast-error .toast-message {
  color: #d9534f;
}
