/* 登录页面样式文件 */
/* 包含登录页面特有的样式 */

/* 登录容器 */
.login-container {
  max-width: 400px;
  margin: 50px auto;
  padding: 20px;
}

/* 应用标题 */
.app-title {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 30px;
  text-align: center;
}

/* 验证码容器 */
.captcha-container {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}

.captcha-input {
  flex: 1;
}

.captcha-image {
  width: 120px;
  height: 40px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  letter-spacing: 3px;
  cursor: pointer;
}

.captcha-refresh {
  background: none;
  border: none;
  color: #3498db;
  cursor: pointer;
  font-size: 14px;
  padding: 5px;
}

.captcha-refresh:hover {
  text-decoration: underline;
}

/* 记住密码 */
.remember-password {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.remember-password input {
  margin-right: 8px;
}

.remember-password label {
  margin-bottom: 0;
}

/* 版本信息 */
.version-info {
  text-align: center;
  margin-top: 30px;
  color: #7f8c8d;
  font-size: 14px;
}

/* 更新提示 */
.update-alert {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: none;
}

.update-alert.show {
  display: block;
}

.update-alert-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.update-alert-actions {
  margin-top: 10px;
}

.update-btn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  margin-right: 10px;
}

.update-btn:hover {
  background-color: #2980b9;
}

.dismiss-btn {
  background: none;
  border: none;
  color: #7f8c8d;
  cursor: pointer;
  font-size: 12px;
}

/* 加载模态框 */
.loading-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  display: none;
}

.loading-modal.show {
  display: flex;
}

.loading-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .login-container {
    margin: 20px auto;
    padding: 15px;
  }
  
  .app-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .captcha-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .captcha-image {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .version-info {
    font-size: 12px;
  }
}