/* 扫码登录样式 */
.login-container {
  position: absolute;
    left: 60%;
    top: -27px;
    margin: 34px auto;
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 320px;
}

.login-container h2 {
  margin-top: 0;
  color: #333;
}

#qrcode-container {
  margin: 20px 20px;
  position: relative;
}

#qrcode-img {
  width: 220px;
  height: 220px;
  border: 1px solid #eee;
  image-rendering: pixelated;
  border-radius: 8px;
  background: #fafafa;
  display: block;
  margin: 0 auto;
}

#countdown {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}

.status {
  margin-top: 15px;
  font-size: 14px;
  color: #888;
}

.success {
  color: #07c160;
}

.error {
  color: #fa5151;
}

button#refresh-btn {
  margin-top: 15px;
  padding: 6px 12px;
  background: #07c160;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: none;
  margin: 0 auto;
}

button#refresh-btn:hover {
  opacity: 0.9;
}

button#refresh-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  margin: auto;
}

.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 3px solid #ddd;
  border-top-color: #07c160;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  color: #fa5151;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 8px;
}