/* 认证页面样式 */
.auth-container {
  min-height: calc(100vh - 64px - 320px); /* 减去头部和底部的高度 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #F5F8FC;
  margin: 0 auto;
  max-width: 1440px;
}

.auth-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  margin: 0;
  position: relative;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.auth-title {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
}

/* 表单样式 */
.auth-form {
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid #EEEEEE;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.input-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--secondary-color);
}

.input-wrapper i {
  position: absolute;
  left: 16px;
  color: #999;
  font-size: 16px;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  background: transparent;
}

.input-wrapper input:focus {
  outline: none;
}

/* 密码强度指示器 */
.password-strength {
  margin-top: 8px;
}

.strength-bar {
  height: 4px;
  background: #EEEEEE;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.strength-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--strength-width, 0%);
  background: var(--strength-color, #EEEEEE);
  transition: all 0.3s ease;
}

.strength-text {
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

/* 验证码输入框 */
.verification-group {
  display: flex;
  gap: 12px;
}

.verification-group .input-wrapper {
  flex: 1;
}

.send-code {
  padding: 0 24px;
  border: none;
  border-radius: 12px;
  background: var(--primary-color);
  color: rgb(234, 17, 17);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.send-code:disabled {
  background: #EEEEEE;
  cursor: not-allowed;
}

/* 表单选项 */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.forgot-password {
  font-size: 14px;
  color: var(--primary-color);
  text-decoration: none;
}

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

/* 提交按钮 */
.auth-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #12B7F5;
  color: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-submit:hover {
  background: #0E90D2;
}

/* 分隔线 */
.auth-divider {
  text-align: center;
  margin: 24px 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 80px);
  height: 1px;
  background: #EEEEEE;
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.auth-divider span {
  background: white;
  padding: 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* 社交登录 */
.social-login {
  display: flex;
  gap: 16px;
}

.social-btn {
  flex: 1;
  padding: 12px;
  border: 2px solid #EEEEEE;
  border-radius: 12px;
  background: white;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.social-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

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

.social-btn.qq:hover {
  border-color: #12B7F5;
  color: #12B7F5;
}

/* 页脚 */
.auth-footer {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .auth-container {
    padding: 24px 16px;
  }
  
  .auth-card {
    padding: 24px;
  }
  
  .social-login {
    flex-direction: column;
  }
}