* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

body {
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 900px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  min-height: 600px;
}

/* 左侧欢迎区域 */
.welcome-section {
  flex: 1;
  background: linear-gradient(135deg, #e60012 0%, #b3000d 100%);
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.welcome-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/images/20250708001149_55628.webp") center/cover;
  opacity: 0.1;
}

.logo {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  position: relative;
  display: flex;
  align-items: center;
}

.logo i {
  font-size: 40px;
  margin-right: 12px;
}

.welcome-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.welcome-text {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
  position: relative;
  max-width: 400px;
}

.features {
  position: relative;
}

.feature {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.feature i {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 18px;
}

.feature-text {
  flex: 1;
}

/* 右侧表单区域 */
.form-section {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 0px;
}

.form-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.form-subtitle {
  color: #666;
  font-size: 16px;
}

.tabs {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 2px solid #eee;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 15px;
  font-size: 18px;
  font-weight: 500;
  color: #999;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.tab.active {
  color: #e60012;
  font-weight: 600;
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: #e60012;
}

.form-content {
  display: none;
}

.form-content.active {
  display: block;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.form-input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s;
}

.form-input:focus {
  border-color: #e60012;
  outline: none;
  box-shadow: 0 0 0 2px rgba(230, 0, 18, 0.2);
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  cursor: pointer;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  margin-right: 8px;
}

.forgot-password {
  color: #e60012;
  text-decoration: none;
  font-size: 14px;
}

.submit-btn {
  background: linear-gradient(135deg, #e60012 0%, #b3000d 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(230, 0, 18, 0.3);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(230, 0, 18, 0.4);
}

.divider {
  text-align: center;
  position: relative;
  margin: 30px 0;
  color: #999;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #eee;
  z-index: 1;
}

.divider-text {
  position: relative;
  z-index: 2;
  background: white;
  padding: 0 15px;
  display: inline-block;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.social-btn:hover {
  transform: translateY(-5px);
}

.wechat {
  background: #2aae67;
}

.qq {
  background: #12b7f5;
}

.weibo {
  background: #e6162d;
}

.alipay {
  background: #1678ff;
}

.form-footer {
  text-align: center;
  color: #666;
  font-size: 15px;
}

.form-footer a {
  color: #e60012;
  text-decoration: none;
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .welcome-section {
    padding: 30px;
  }

  .form-section {
    padding: 30px 20px;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated {
  animation: fadeIn 0.6s ease forwards;
}

/* 表单验证 */
.error-message {
  color: #e60012;
  font-size: 13px;
  margin-top: 5px;
  display: none;
}

.form-input.invalid {
  border-color: #e60012;
}

.form-input.invalid + .error-message {
  display: block;
}
