/* Member login page. PHP 5.2 and BIG5 safe. */
html { overflow-y: scroll; }
* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0 !important;
  color: #263442;
}

#wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#wrap > .login-footer {
  width: 100%;
  margin-top: auto;
}

#content {
  width: calc(100% - 24px);
  max-width: 960px;
  margin: 28px auto 16px;
  padding: 0;
  text-align: center;
}

.line-link { display: inline-block; max-width: 100%; }

.lineimg {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
}

.login-container {
  width: calc(100% - 24px);
  max-width: 960px;
  margin: 0 auto 60px;
  padding: 0;
}

.login-panel {
  width: 100%;
  max-width: 620px;
  margin: 0 auto 26px;
  padding: 28px 34px 32px;
  border: 1px solid #dfe7ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(40, 67, 84, .08);
}

.login-form { width: 100%; margin: 0; }

.login-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dfe7ed;
}

.login-title .fa { color: #1677b8; font-size: 22px; }

.login-title h1 {
  margin: 0;
  color: #263442;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.4;
}

.login-form .form-group { margin: 0 0 16px; }

.login-form .form-control {
  width: 100%;
  height: 44px;
  padding: 10px 42px 10px 13px;
  border: 1px solid #cbd8e1;
  border-radius: 7px;
  background: #fff;
  color: #263442;
  font-family: Arial, "Microsoft JhengHei", sans-serif;
  font-size: 15px;
  box-shadow: none;
}

.login-form .form-control:focus {
  border-color: #1677b8;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(22, 119, 184, .12);
}

.position-relative { position: relative; }
.position-absolute { position: absolute; }

#togglePassword {
  top: 0;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 44px;
  color: #6c7a89;
  font-size: 21px;
  cursor: pointer;
}

.login-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #dfe7ed;
}

.login-actions .order_button {
  min-width: 150px;
  height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 7px;
  background: #1677b8;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 3px 8px rgba(22, 119, 184, .24);
}

.login-actions .order_button:hover,
.login-actions .order_button:focus { background: #0d5f96; }

.line-login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.line-login img { display: block; max-height: 44px; width: auto; }

.login-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  float: none;
  width: 100%;
  padding: 0;
}

.login-shortcuts > a { color: inherit; text-decoration: none; }

.login-shortcut {
  float: none;
  width: 100%;
  min-height: 100%;
  padding: 0;
}

.login-shortcut .team {
  height: 100%;
  margin: 0;
  padding: 18px 12px 22px;
  border: 1px solid #dfe7ed;
  border-radius: 10px;
  background: #f8fbfd;
  transition: border-color .2s, background .2s, transform .2s;
}

.login-shortcuts > a:hover .team {
  border-color: #91bfd9;
  background: #edf7fc;
  transform: translateY(-2px);
}

.login-shortcut h5 {
  min-height: 40px;
  margin: 0 0 12px;
  color: #263442;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
}

.login-shortcut .inner {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 1;
  display: block !important;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

.login-shortcut .avatar {
  position: static !important;
  z-index: auto !important;
  display: block !important;
  float: none !important;
  width: 178px;
  height: 178px;
  margin: 0 auto !important;
  padding: 0 !important;
  transform: none !important;
}

.login-shortcut .avatar img {
  position: static !important;
  z-index: auto !important;
  display: block;
  float: none !important;
  width: 178px;
  height: 178px;
  margin: 0 !important;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  transform: none !important;
  box-shadow: 0 2px 8px rgba(40, 67, 84, .12);
}

@media screen and (max-width: 768px) {
  #content { width: 100%; margin: 0 auto 12px; }
  .lineimg { width: 100%; border-radius: 0; }
  .login-container { width: 100%; margin-bottom: 30px; padding: 0 12px; }
  .login-panel { padding: 22px 16px 26px; }
  .login-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .login-actions .order_button {
    flex: 0 0 calc((100% - 10px) / 2);
    width: calc((100% - 10px) / 2);
    min-width: 0;
    max-width: none;
  }

  .login-actions .line-login {
    flex: 0 0 calc((100% - 10px) / 2);
    width: calc((100% - 10px) / 2);
    height: 44px;
    min-width: 0;
  }

  .login-actions .line-login img {
    width: 100%;
    height: 44px;
    max-width: none;
    object-fit: fill;
  }
  .login-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .login-shortcut .team { padding: 14px 8px; }

  .login-shortcut .avatar,
  .login-shortcut .avatar img {
    width: 140px;
    height: 140px;
  }
}
