/* 20260722 新增 */

.wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 40px 20px;
  box-sizing: border-box;
}

#formContent {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 40px 30px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

#formContent:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.fadeIn.first {
  font-size: 20px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

input[type=text],
input[type=password] {
  background-color: #f3f4f6;
  border: 2px solid transparent;
  color: #1f2937;
  padding: 14px 20px;
  text-align: left;
  font-size: 15px;
  margin: 10px 0;
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

input[type=text]:focus,
input[type=password]:focus {
  background-color: #ffffff;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

#loginform input[type=password] {
  margin-bottom: 0;
}

#captcha {
  width: calc(100% - 230px);
  display: inline-block;
  vertical-align: middle;
  float: left;
}

div>img#imgcode {
  display: inline-block;
  vertical-align: middle;
  width: 210px !important;
  height: 54.5px;
  border-radius: 8px;
  margin-top: 10px !important;
  margin-left: 10px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

button,
input[type=submit] {
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0;
  padding: 14px 20px !important;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px !important;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

input[type=submit] {
  background: linear-gradient(135deg, #667eea 0%, #5a67d8 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  text-transform: none;
}

input[type=submit]:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #4c51bf 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

input[type=submit]:active {
  transform: translateY(1px);
}

a button:not(#personnel-login-button) {
  background-color: #ffffff;
  color: #2d3748;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

a button:not(#personnel-login-button):hover {
  background-color: #f7fafc;
  border-color: #cbd5e0;
  transform: translateY(-1px);
}

a button img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

a[href*="ecpa"] button {
  background-color: #4a5568;
  color: #ffffff;
}

a[href*="ecpa"] button:hover {
  background-color: #2d3748;
}

#personnel-login-button {
  background: linear-gradient(135deg, #FFC107 0%, #FFC107 100%) !important;
  color: #1a202c !important;
  box-shadow: 0 4px 12px rgba(214, 158, 46, 0.2);
}

#personnel-login-button:hover {
  background: linear-gradient(135deg, #f6e05e 0%, #ecc94b 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(214, 158, 46, 0.3);
}

a,
a:hover,
a:focus {
  text-decoration: none;
  outline: none;
  display: block;
}

#formFooter {
  display: none;
}

#loginform br {
  display: none;
}

#loginform a {
  margin-bottom: 10px !important;
}

.fadeInDown {
  animation: customFadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes customFadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}