/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Microsoft YaHei', sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f7faff;
}

.container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  height: 600px;
  background: #fff;
  box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

/* 左侧部分 */
.left-section {
  flex: 1;
  position: relative;
  /* 让子元素绝对定位基于此 */
  background: linear-gradient(to right, #e8f4ff, #f1f9ff);
  display: flex;
  justify-content: center;
  align-items: center;
}

.left-section h2,
.left-section h1 {
  position: absolute;
  /* 绝对定位 */
  z-index: 2;
  /* 提高层级，使文字显示在图片之上 */
  text-align: center;
  color: #333;
  /* 字体颜色 */
  font-weight: bold;
}

.left-section h2 {
  top: 10%;
  /* 距离顶部的位置 */
  left: 19%;
  /* 距离左侧的距离，越小越靠左 */
  font-size: 20px;
  color: #5f6f8c;
  position: absolute;
  /* 确保绝对定位 */
}

.left-section h1 {
  top: 15%;
  margin-top: 10px;
  font-size: 28px;
  color: #333;
}

.illustration img {
  width: 100%;
  height: auto;
  z-index: 1;
  /* 图片层级较低 */
  margin-top: 40px;
}

/* 右侧登录部分 */
.login-section {
  flex: 0.7;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #fff;
}

.login-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

.input-box {
  margin-bottom: 20px;
}

.input-box input {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.input-box input:focus {
  outline: none;
  border-color: #4c98ff;
}

.terms {
  font-size: 12px;
  color: #666;
  margin-bottom: 20px;
}

.terms a {
  color: #4c98ff;
  text-decoration: none;
}

.login-button {
  width: 100%;
  padding: 15px;
  background-color: #4c98ff;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.login-button:hover {
  background-color: #3b82f6;
}

.forgot-password {
  display: block;
  text-align: center;
  margin-top: 15px;
  color: #4c98ff;
  text-decoration: none;
}