@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.social-icons .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 5px;
  background-color: #c0c0c0;
  transition: 0.3s;
  font-size: 25px;
}

.social-icons .icon:hover {
  background-color: #605c77;
}

.loginbody {
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-image: url("pic/logins.jpg");
  background-size: cover;
  background-repeat: no-repeat;
}

.logincontainer {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px); /* 保留 footer 空间 */
  padding-top: 100px;
  padding-bottom: 100px;
}

.boxbox {
  position: relative;
  width: 500px;
  height: 600px;
  background: #a5a3a3;
  border-radius: 30px;
  overflow: hidden;
}

.form label {
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  font-size: 0.8em;
  color: #000000;
}

.boxbox::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -30%;
  width: 500px;
  height: 520px;
  background: linear-gradient(0deg, transparent, #000000);
  z-index: 1;
  transform-origin: bottom right;
  animation: animate 6s linear infinite;
  animation-delay: -3s;
}

@keyframes animate {
 
  100% {
    transform: rotate(360deg);
  }
}

.form {
  position: absolute;
  inset: 2px;
  border-radius: 30px;
  background: #d4d4d4;
  z-index: 10;
  padding: 50px 50px;
  display: flex;
  flex-direction: column;

}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* 水平居中 */
}

.form h1 {
  color: #0b431e;
  text-align: center;
  letter-spacing: 0.1em;
}

.inputbox {
  position: relative;
  width: 400px;
  margin-top: 35px;
}

.inputbox input {
  position: relative;
  width: 100%;
  padding: 20px 10px 10px;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1em;
  letter-spacing: 0.05em;
  z-index: 10;
}

.inputbox span {
  position: absolute;
  left: 0;
  font-size: 1.2em;
  color: #000000;
  letter-spacing: 0.05em;
  transition: 0.5s;
}

.inputbox input:valid~span,
.inputbox input:focus~span {
  color: #ffffff;
  transform: translateX(0px) translateY(-34px);
  font-size: 0.75em;
}

.inputbox i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #6f6f6f;
  border-radius: 4px;
  transition: 0.5s;
  pointer-events: none;
  z-index: 9;
}

.inputbox input:valid~i,
.inputbox input:focus~i {
  height: 44px;
}

.login-btn {
  border: none;
  outline: none;
  background: #434343;
  padding: 11px 25px;
  width: 400px;
  color: #fff;
  margin-top: 10px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.5s ease;
}

.login-btn:hover,
.login-btn:nth-child(2) {
  color: #000000;
}
