* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Rubik', sans-serif;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

.container {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* 左侧背景图区域 - 占比较小 */
.left {
  width: 60%;
  background-image: url(https://picsum.photos/id/1025/1200/1800);
  background-size: cover;
  background-position: center;
  position: relative;
  transition: all 0.5s ease;
}

.left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(118, 75, 162, 0.6);
  z-index: 1;
}

.left-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  color: white;
}

.left-content h2 {
  font-size: 3rem;
  margin-bottom: 25px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1.2s ease forwards;
  opacity: 0;
}

.left-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1.2s ease 0.3s forwards;
  opacity: 0;
  max-width: 400px;
}

/* 右侧登录表单区域 - 占比大，靠右全屏显示 */
.right {
  width: 40%;
  padding: 0 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  animation: slideIn 1s ease forwards;
}

.header {
  margin-bottom: 50px;
}

.header h2 {
  color: #4a4a68;
  font-size: 2.2rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 3px;
}

.header h4 {
  color: #8a8a9a;
  font-weight: 400;
  font-size: 1.05rem;
  max-width: 500px;
  line-height: 1.5;
}

.form {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-group {
  position: relative;
}

.form-field {
  width: 100%;
  height: 55px;
  padding: 0 20px 0 50px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Rubik', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f9f9f9;
}

.form-field:focus {
  border-color: #764ba2;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
  outline: none;
}

.form-field::placeholder {
  color: #b0b0b0;
}

.form-group i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a8a9a;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.form-group:focus-within i {
  color: #764ba2;
}

.form-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-top: 10px;
}

.form-links a {
  color: #764ba2;
  text-decoration: none;
  transition: all 0.2s ease;
}

.form-links a:hover {
  color: #667eea;
  text-decoration: underline;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: #764ba2;
  cursor: pointer;
}

.form-checkbox label {
  color: #5a5a5a;
  cursor: pointer;
}

.form > button {
  height: 55px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-family: 'Rubik', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 15px;
}

.form > button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.6s ease;
}

.form > button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(118, 75, 162, 0.2);
}

.form > button:hover::after {
  left: 100%;
}

.form > button:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(118, 75, 162, 0.2);
}

.signup-section {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.signup-text {
  font-size: 1rem;
  color: #5a5a5a;
}

.signup-text a {
  color: #764ba2;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 1.05rem;
}

.signup-text a:hover {
  color: #667eea;
  text-decoration: underline;
}

.divider {
  margin: 30px 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.divider-text {
  color: #8a8a9a;
  font-size: 0.9rem;
  white-space: nowrap;
}

.social-login {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-btn {
  flex: 1;
  height: 55px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Rubik', sans-serif;
  font-size: 0.95rem;
  color: #5a5a5a;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: #f8f8f8;
  border-color: #d0d0d0;
  transform: translateY(-2px);
}

.social-btn i {
  font-size: 1.2rem;
}

/* 动画效果 */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .right {
    padding: 0 60px;
  }
  
  .left-content {
    padding: 60px;
  }
}

@media (max-width: 992px) {
  .container {
    flex-direction: column;
  }
  
  .left {
    width: 100%;
    height: 300px;
  }
  
  .right {
    width: 100%;
    padding: 60px;
    height: auto;
    min-height: calc(100vh - 300px);
  }
  
  .form {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .left {
    height: 250px;
  }
  
  .left-content {
    padding: 30px;
    text-align: center;
    align-items: center;
  }
  
  .left-content h2 {
    font-size: 2.2rem;
  }
  
  .right {
    padding: 30px 20px;
  }
  
  .header h2 {
    font-size: 1.8rem;
  }
  
  .social-login {
    flex-direction: column;
  }
}