* {
  margin: 0;
  padding: 0;
}

body {
  background-color: rgb(247, 248, 248);
}

.login {
  width: 1008px;
  height: 476px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: auto;
  margin-top: 100px;
  background-color: rgb(255, 255, 255);
}

.login-box {
  float: left;
  width: 600px;
  height: 476px;
  display: grid;
  place-items: center;
  /* 同时水平和垂直居中 */
}

.login-box-child {
  display: grid;
  place-items: center;
  /* 同时水平和垂直居中 */
  width: 378px;
  text-align: center;
}

.login-box h2 {
  color: #ecab13;

}

.login-box input {
  width: 342px;
  height: 44px;
  margin: 10px auto;
  font-size: 1rem;
  margin: 0.8rem 0px;
  padding: 0px 1rem;
  /* border: 0cap; */
  background-color: rgb(247, 248, 252);
  border-width: 1px;
  border-style: solid;
  border-color: rgb(228, 228, 228);
  border-radius: 8px;
  font-size: 18px;
}

.forget {
  margin-top: 3px;
  margin-bottom: 5px;
  font-size: 12px;
  float: right;
  color: #000;
  text-decoration: none;
}

.forget:hover {
  color: #ecab13;
  text-decoration: underline;
}

.login-box button {
  width: 376px;
  height: 44px;
  background-color: #d6990f;
  background: rgba(236, 171, 19, 0.3);
  font-size: 20px;
  color: white;
  border: 0cap;
  border-radius: 7px;
}

.login-box button:hover {
  background-color: #ecab13;
}

.register a {
  display: block;
  margin: 1rem 0px;
  font-size: 16px;
  color: #000;
  float: right;
  text-decoration: none;
}

.register a:hover {
  text-decoration: underline;
}

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

.login-box1 {
  float: right;
  width: 400px;
  height: 476px;
  display: grid;
  place-items: center;
}

.login-box1 h3 {
  color: #ecab13;
}

.login-box1 img {
  width: 204px;
  height: 204px;
}

.login-box1-child {
  display: grid;
  place-items: center;
  /* 同时水平和垂直居中 */
  width: 100%;
  border-left: rgb(191, 191, 191) 1px solid;
}

.login-box1 p {
  color: #ecab13;
}


.footer {
  position: fixed;
  text-align: center;
  bottom: 30px;
  left: 50%;
  margin-left: -344.125px;
}

.footer a {
  color: rgb(83, 83, 82);
  text-decoration: none;
  font-size: 12px;
}

.footer a:hover {
  color: #ecab13;
  text-decoration: underline;
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  /* 半透明黑色背景 */
  backdrop-filter: blur(5px);
  /* 背景模糊效果 */
}

.modal-content {
  background-color: #ffffff;
  margin: 10% auto;
  padding: 25px;
  width: 350px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  /* 阴影效果 */
  animation: fadeIn 0.3s ease-in-out;
  /* 淡入动画 */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 关闭按钮 */
.close {
  float: right;
  cursor: pointer;
  font-size: 24px;
  color: #888;
  transition: color 0.3s ease;
}

.close:hover {
  color: #333;
}

/* 表单标题 */
.modal-content h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
  text-align: center;
}

/* 表单输入框 */
.modal-content input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.modal-content input:focus {
  border-color: #007bff;
  outline: none;
}

/* 按钮样式 */
.modal-content button {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  /* 渐变背景 */
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal-content button:hover {
  background: linear-gradient(135deg, #0056b3, #003d80);
  /* 悬停时渐变变化 */
}

/* 分步表单 */
.form-step {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .modal-content {
    width: 90%;
    margin: 20% auto;
  }
}


/* 提示信息样式 */
#message {
  display: none;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4CAF50;
  /* 默认成功颜色 */
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}