/* ==========================================
   登录页样式 - 重新设计版本
   配色：活力橙系
   ========================================== */

/* 主体区域 */
.login-main {
  min-height: 600px; /* 固定最小高度 */
  background: linear-gradient(135deg, #FFF5F0 0%, #FFF8F5 50%, #F7F9FC 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px; /* 上部120px，下部60px */
}

/* 背景装饰 */
.login-main::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.login-main::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

/* 登录容器 */
.login-wrapper {
  position: relative;
  z-index: 2;
  max-width: 500px;
  margin: 0 auto;
}

/* 登录卡片 */
.login-card {
  background-color: var(--white);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  padding: 50px 40px;
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 标题区 */
.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.2;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-header p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.5;
}

/* 表单样式 */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group label i {
  color: var(--primary-color);
  font-size: 16px;
}

.form-control {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 2px solid #E8EAED;
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-dark);
  background-color: #F8F9FA;
  transition: all var(--transition-base);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* 密码输入框 */
.password-input {
  position: relative;
}

.password-input .form-control {
  padding-right: 52px;
}

.toggle-password {
  position: absolute;
  right: 0;
  top: 0;
  height: 52px;
  width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
}

.toggle-password:hover {
  color: var(--primary-color);
}

/* 验证码输入框 */
.captcha-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-input .form-control {
  flex: 1;
}

.captcha-image {
  height: 50px;
  width: 120px;
  border-radius: var(--radius-md);
  background-color: #F8F9FA;
  border: 2px solid #E8EAED;
  cursor: pointer;
  transition: all var(--transition-base);
  object-fit: contain;
  flex-shrink: 0;
}

.captcha-image:hover {
  border-color: var(--primary-color);
  transform: scale(1.02);
}

.btn-refresh-captcha {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F8F9FA;
  border: 2px solid #E8EAED;
  border-radius: var(--radius-md);
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-refresh-captcha:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  transform: rotate(180deg);
}

.btn-refresh-captcha i {
  font-size: 20px;
}

/* 表单选项 */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -8px 0;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.forgot-password {
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.forgot-password:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* 提交按钮 */
.btn-submit {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  margin-top: 8px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit i {
  font-size: 18px;
  transition: transform var(--transition-base);
}

.btn-submit:hover i {
  transform: translateX(4px);
}

/* 表单底部 */
.form-footer {
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
  margin-top: 8px;
}

.form-footer a {
  color: var(--primary-color);
  font-weight: 600;
  margin-left: 4px;
  transition: color var(--transition-fast);
}

.form-footer a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* 第三方登录 */
.social-login {
  margin-top: 40px;
}

.divider {
  position: relative;
  text-align: center;
  margin-bottom: 24px;
}

.divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background-color: #E8EAED;
}

.divider span {
  position: relative;
  display: inline-block;
  padding: 0 16px;
  background-color: var(--white);
  font-size: 13px;
  color: var(--text-muted);
  z-index: 1;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-btn {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #E8EAED;
  background-color: var(--white);
  cursor: pointer;
  transition: all var(--transition-base);
}

.social-btn i {
  font-size: 24px;
}

.social-btn.wechat {
  color: #07C160;
}

.social-btn.wechat:hover {
  border-color: #07C160;
  background-color: rgba(7, 193, 96, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(7, 193, 96, 0.2);
}

.social-btn.qq {
  color: #12B7F5;
}

.social-btn.qq:hover {
  border-color: #12B7F5;
  background-color: rgba(18, 183, 245, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(18, 183, 245, 0.2);
}

.social-btn.weibo {
  color: #E6162D;
}

.social-btn.weibo:hover {
  border-color: #E6162D;
  background-color: rgba(230, 22, 45, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(230, 22, 45, 0.2);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .login-main {
    min-height: 500px;
    padding: 80px 20px 40px; /* 上部80px，下部40px */
  }
  
  .login-card {
    padding: 40px 24px;
    border-radius: 20px;
  }
  
  .login-header h1 {
    font-size: 26px;
  }
  
  .login-header p {
    font-size: 14px;
  }
  
  .form-control {
    height: 50px;
    font-size: 14px;
  }
  
  .toggle-password {
    height: 50px;
  }
  
  .btn-submit {
    height: 52px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 30px 20px;
  }
  
  .captcha-input {
    flex-wrap: wrap;
  }
  
  .captcha-input .form-control {
    flex: 1 1 100%;
  }
  
  .captcha-image {
    width: calc(100% - 60px);
  }
  
  .social-buttons {
    gap: 12px;
  }
  
  .social-btn {
    width: 48px;
    height: 48px;
  }
  
  .social-btn i {
    font-size: 20px;
  }
}

/* Parsley错误样式 */
.parsley-errors-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
  font-size: 13px;
  color: #E53E3E;
}

.parsley-errors-list li {
  display: flex;
  align-items: center;
  gap: 4px;
}

.parsley-errors-list li::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #E53E3E;
  color: white;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

.parsley-error {
  border-color: #E53E3E !important;
  background-color: #FFF5F5 !important;
}

.parsley-error:focus {
  box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.1) !important;
}
