/* ===================================================================
   登录页面专用样式 - 高级感与丰富留白
   =================================================================== */

/*#region 登录页面布局 */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 40px; /* 减半，原为80px */
  /* 删除或注释掉这里可能存在的背景定义 */
  /* background: ...; */

}

/* 内容区域结构 */
.login-container {
  
  max-width: 1000px;
  
  max-height: 600px;
  
  margin: 4rem auto;  /* 减小上下边距 */
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.8s ease-out;
  position: relative;
  z-index: 1;
}

/* 左侧信息区域 */
.login-left {
  flex: 1;
  background: linear-gradient(135deg, rgba(160, 80, 70, 0.9) 0%, rgba(232, 208, 179, 0.85) 100%);
  padding: 3rem;  /* 统一内边距 */
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* 右侧表单区域 */
.login-right {
  flex: 1;
  background: rgba(255, 255, 255, 0.5);
  padding: 3rem;  /* 统一内边距 */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 装饰背景图案 */
.login-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(255, 255, 255, 0.15)" stroke-width="1"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255, 255, 255, 0.1)" stroke-width="1"/></svg>');
  background-repeat: repeat;
  opacity: 0.5;
}

/* 中国风装饰 */
.login-ornament {
  position: absolute;
  width: 150px;
  height: 150px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.2;
}

.login-ornament.top {
  top: 20px;
  right: 20px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10,50 Q10,10 50,10 Q90,10 90,50 Q90,90 50,90 Q10,90 10,50 Z" fill="none" stroke="rgba(255, 255, 255, 0.8)" stroke-width="2"/></svg>');
}

.login-ornament.bottom {
  bottom: 20px;
  left: 20px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,20 L80,20 L80,80 L20,80 Z" fill="none" stroke="rgba(255, 255, 255, 0.8)" stroke-width="2"/></svg>');
}
/*#endregion */

/*#region 登录页面内容 */
/* 左侧内容 */
.login-left-content {
  position: relative;
  z-index: 1;
}

.login-logo {
  margin-bottom: 1rem;
  font-size: 8rem;
  font-weight: 700;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  font-size: 2.5rem;
  color: var(--chinese-ink);
  position: relative;
  padding-bottom: 15px; /* 为分割线留出空间 */
}

.login-header h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.login-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
  opacity: 0.9;
}

.login-features {
  margin-top: 2rem;
}

.login-feature {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.login-feature i {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* 右侧表单 */
.login-form-title {
  font-size: 1.8rem;  /* 略微减小字体 */
  margin-bottom: 2rem;
  color: var(--chinese-ink);
  text-align: center;
  position: relative;
}

.login-form-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.login-form {
  max-width: 400px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 0.35rem;  /* 原来是1.5rem，缩小到一半 */
  position: relative;
}

/* 最后一个表单项与按钮之间可能需要更大的间距 */
.form-group:last-of-type {
  margin-bottom: 1.25rem;  /* 给最后一个表单项稍大一点的底部间距 */
}

.form-control {
  width: 100%;
  padding: 12px 16px 12px 45px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(160, 80, 70, 0.1);
  outline: none;
}

.login-button {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;  /* 添加顶部边距 */
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(160, 80, 70, 0.2);
}

.login-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(192, 44, 56, 0.3);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.remember-me {
  font-size: 0.9rem;
  color: var(--light-text);
  display: flex;
  align-items: center;
  margin-top: 0.5rem;  /* 添加一点顶部间距 */
  margin-bottom: 1rem;  /* 与按钮保持一定距离 */
}

.forgot-link {
  font-size: 0.9rem;
  color: var(--primary-color);
  text-decoration: none;
  margin-left: auto;
  transition: all 0.2s ease;
}

.forgot-link:hover {
  text-decoration: underline;
}

.login-divider {
  display: flex;
  align-items: center;
  color: var(--light-text);
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.login-divider::before {
  margin-right: 10px;
}

.login-divider::after {
  margin-left: 10px;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

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

.social-btn.google i {
  color: #DB4437;
}

.social-btn.facebook i {
  color: #4267B2;
}

.social-btn.twitter i {
  color: #1DA1F2;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.register-now {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--light-text);
}

.register-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.register-link:hover {
  text-decoration: underline;
}
/*#endregion */

/* 已移除响应式设计模块 - 将在后期优化时添加 */

/* 添加动画关键帧 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
} 