/*color-------------------------------------------------------------------------------------*/
@-webkit-keyframes fancybox-rotate {
  from {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}
@keyframes fancybox-rotate {
  from {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}
/*---------------------------------------------------
    LESS Elements 0.9
  ---------------------------------------------------
    A set of useful LESS mixins
    More info at: http://lesselements.com
  ---------------------------------------------------*/
body {
  margin: 0;   
  overflow-x: hidden;
}
body .textInput {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
  width: 100%;
}
body .textInput label {
  white-space: nowrap;
  font-size: 13px;
  /* font-weight: 300; */
  line-height: 160%;
  letter-spacing: normal;
  color: #7f7f7f;
}
body .textInput .block {
  width: 100%;
  display: flex;
  align-items: center;
}
body .textInput .block input {
  max-width: 128px;
}
body .textInput .block .code {
  width: 100px;
  height: 30px;
  margin-left: 8px;
}
body .textInput .block .refresh {
  width: 24px;
  height: 24px;
  cursor: pointer;
  margin-left: 12px;
}
body .textInput input {
  height: 25px; /* it fix: 設計原為24, 高度不一致*/
  width: 100%;
  font-size: 16px;
  /* font-weight: 300; */
  letter-spacing: 1px;
  text-align: left;
  line-height: 1;
  color: #404040;
  padding: 1px 0 0 0;
  border: none;
  border-bottom: solid 1px #c0c0c0; 
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
  margin-bottom: 1px;   /* it fix: 1px solid 差距的問題 */
}
body .textInput input:focus {
  height: 25px;
  border-bottom: solid 2px #316fc9;
  margin-bottom: 0px;   /* it fix: 1px solid 差距的問題 */
}
body .textInput input:-webkit-autofill {
  -webkit-text-fill-color: #404040;
  -webkit-box-shadow: 0 0 0px 1000px white inset;
}
body .textInput input::-ms-clear {
  display: none;
}
body .textInput input::placeholder {
  color: #c0c0c0;
}
body .textInput .input_error {
  width: 100%;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.67;
  letter-spacing: 1px;
  text-align: left;
  color: #f77ebc;
  min-height: 20px;
}
body .textInput.error input {
  height: 25px;
  border-bottom: solid 2px #f77ebc;
  margin-bottom: 0px;   /* it fix: 1px solid 差距的問題 */
}
body .textInput.error input:focus {
  height: 25px;
  border-bottom: solid 2px #f77ebc;
  margin-bottom: 0px;   /* it fix: 1px solid 差距的問題 */
}
.buttons {   
  text-align: center; width:400px;
}
.buttons a {  
  display: inline-block; 
  width: 140px;
  height: 48px;
  border: solid 1px #01b1b1;
  border-radius: 100px;
  line-height: 48px;
  background-color: #fff;
  color: #01b1b1;
}
.buttons a.blue {  
  display: inline-block;
  width: 140px;
  height: 48px;
  border: solid 1px #01b1b1;
  border-radius: 100px;
  line-height: 48px;
  border: none;
  background-image: linear-gradient(to right, #093e7e, #2ad2b8);
  color: white;
}
body .login {
  padding: 0; 
}
body .login .header.pc {  
  border-bottom: solid 1px #f0f0f0;    
  font-size: 20px;
  font-weight: 600; 
  height: 55px;
  text-align: center;
  color: #0087d5;  
  background: url(../svg/invalid-name10.svg) no-repeat 90% bottom;
  background-size:  60px;
  padding: 20px 0 0 0; 
  margin:0;
  width:100%;
  -webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box; 
}
body .login .header.mobile {
  padding-top: 15px;
  margin: 0 0px 0;
}
body .login .header h2 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1px;
  text-align: center;
  color: #4668cb;
  line-height: 52px;
  line-height: 1.44;
  margin-bottom: 16px;
}
body .login .header h2 br {
  display: none;
}
body .login .content {  
  position: relative;
  padding: 35px 88px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
body .login .content > .error {
  box-sizing: border-box;
  padding: 0;
  position: relative;
  margin-top: -32px;
  width: 100%;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.43;
  letter-spacing: 1px;
  text-align: center;
  color: #f77ebc;
}
body .login .content .input_box {
  width: 100%;
  margin-top: 12px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
body .login .content .input_box .textInput {
  margin-bottom: 4px;
  max-width: 272px;
}
body .login .content .input_box .textInput:nth-child(3) {
  margin-bottom: 0;
}
body .login .content .input_box .textInput:nth-child(3) .input_error {
  min-height: 18px;
}
body .login .content .input_box .textInput:nth-child(3) .password_forgot {
  position: absolute;
  top: 55px;
  right: 0;
  font-size: 12px;
  font-weight: 300;
  font-style: normal;
  font-stretch: normal;
  line-height: 1.67;
  letter-spacing: 1px;
  text-align: right;
  color: #316fc9;
  display: inline-block;
  text-decoration: underline;
}
body .footer {
  background: #F6F6F6;
  height: 48px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
body .footer a {
  color: #316fc9;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.57;
  letter-spacing: 1px;
  text-align: center;
  text-decoration: underline;
  margin: 0 27px;
}
body .loading.login-iframe {
  position: fixed;
  width:  100%;
  height: 140px;
  background-color: rgba(0, 0, 0, 0.36);
  z-index: 100;
  top: 20%;
  left: 0; 
  right:0;
}
body .loading.login-iframe .fancybox-loading {
  border: 6px solid rgba(100, 100, 100, 0.4);
  border-top: 6px solid rgba(255, 255, 255, 0.6);
  border-radius: 100%;
  height: 50px;
  width: 50px;
  -webkit-animation: fancybox-rotate 0.8s infinite linear;
  animation: fancybox-rotate 0.8s infinite linear;
  background: transparent;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: 0 auto; 
}

/*color-------------------------------------------------------------------------------------*/
@-webkit-keyframes fancybox-rotate {
  from {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}
@keyframes fancybox-rotate {
  from {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}
/*---------------------------------------------------
    LESS Elements 0.9
  ---------------------------------------------------
    A set of useful LESS mixins
    More info at: http://lesselements.com
  ---------------------------------------------------*/
@media screen and (max-width: 428px) {
   body .textInput .block input {
    max-width: 100%;
  }
  body .login {
    padding: 0;
  }
  body .login .header {
    padding-top: 0;
    margin: 0;
    background: none;
    border-bottom: none;
    padding: 0 16px;
  }
body .login .header.pc { 
  font-size: 16px; 
  height: 42px; 
  background: url(../svg/invalid-name10.svg) 94% bottom no-repeat;
  background-size: 45px;
  width:100%; 
  padding: 15px 30px 0 0; 
  margin: 10px 3px 0 3px;
}

  body .login .content {  
    padding: 45px 0 0 0;
    width: 272px;
    margin: 0 auto;
  }
  body .login .content .input_box .textInput {
    max-width: 100%;
    margin-bottom: 0;
  }
  body .login .content .input_box .textInput:nth-child(3) .password_forgot {
    top: 55px;
  }
  body .login .content .input_box .textInput:nth-child(3) .input_error {
    min-height: 0;
  }
  body .login .content .input_box .textInput .input_error {
    min-height: 0;
    margin-bottom: 20px;
  }
  body .footer {
    position: fixed;
    width: 100%;
    bottom: 0;
  }
  body .footer a {
    font-size: 12px;
    line-height: 1.67;
    margin: 0 20px;
  }
body .loading.login-iframe .fancybox-loading { 
  height: 40px;
  width: 40px;    
}
}

/** it fix: 避免變成兩行, 登入 iframe 會出現 scroll bar **/
body .login .header h2 br {
display: none;
}