/* 登录页面样式 */

body {
  background-color: #f5f7fa;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.login-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

/* 登录表单面板 */
.login-panel {
  width: 45%;
  min-width: 360px;
  max-width: 480px;
  background-color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.logo {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
}

.title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.tabs {
  display: flex;
  width: 100%;
  margin-bottom: 30px;
  border-bottom: 1px solid #eaeaea;
}

.tab-item {
  width: 50%;
  padding: 12px 0;
  text-align: center;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.tab-item.active {
  color: #1890ff;
  font-weight: 500;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 25%;
  width: 50%;
  height: 2px;
  background-color: #1890ff;
  border-radius: 2px;
}

.form-container {
  width: 100%;
}

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

.forgot-link {
  color: #1890ff;
  font-size: 14px;
}

.submit-btn {
  width: 100%;
  height: 40px;
  font-size: 16px;
}

.other-login {
  margin-top: 30px;
  width: 100%;
}

.divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 40%;
  height: 1px;
  background-color: #eaeaea;
}

.divider::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 40%;
  height: 1px;
  background-color: #eaeaea;
}

.divider-text {
  display: inline-block;
  background-color: #fff;
  padding: 0 10px;
  font-size: 14px;
  color: #999;
  position: relative;
  z-index: 1;
}

.social-login {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 10px;
  transition: all 0.3s;
}

.social-btn:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-btn .icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.social-btn.wechat .icon {
  background-image: url('../../images/wechat-icon.svg');
}

.social-btn.dingtalk .icon {
  background-image: url('../../images/dingtalk-icon.svg');
}

.wechat {
  color: #07C160;
  border-color: #07C160;
}

.dingtalk {
  color: #1E9FFF;
  border-color: #1E9FFF;
}

/* 使用表情符号作为图标的替代方案 */
.social-btn.wechat .icon:after {
  content: '💬';
  font-size: 14px;
}

.social-btn.dingtalk .icon:after {
  content: '📱';
  font-size: 14px;
}

/* 登录页面右侧信息区域 */
.info-panel {
  flex: 1;
  background: linear-gradient(45deg, #1890ff, #36cfc9);
  color: #fff;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-content {
  max-width: 600px;
  margin: 0 auto;
}

.info-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.info-desc {
  font-size: 18px;
  margin-bottom: 60px;
}

.feature-list {
  display: flex;
  flex-direction: column;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.feature-icon:after {
  font-size: 20px;
}

.feature-icon.data-collection:after {
  content: '📊';
}

.feature-icon.data-analysis:after {
  content: '📈';
}

.feature-icon.ai-insight:after {
  content: '🤖';
}

.feature-text h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
}

.feature-text p {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
}

.info-footer {
  text-align: center;
  opacity: 0.8;
  font-size: 14px;
}

/* 响应式适配 */
@media (max-width: 992px) {
  .login-container {
    flex-direction: column;
  }
  
  .login-panel {
    width: 100%;
    max-width: 100%;
  }
  
  .info-panel {
    padding: 40px 20px;
  }
  
  .info-title {
    font-size: 28px;
  }
  
  .info-desc {
    font-size: 16px;
    margin-bottom: 40px;
  }
}

@media (max-width: 576px) {
  .login-panel {
    padding: 30px 20px;
  }
  
  .social-login {
    flex-direction: column;
  }
  
  .social-btn {
    margin: 8px 0;
  }
}

.agreement {
  margin-bottom: 20px;
}

.agreement a {
  color: #1890ff;
}