:root {
  --primary-color: #12b7f5;
  --secondary-color: #2d3748;
  --accent-color: #4299e1;
  --light-bg: #f8f9fa;
  --dark-bg: #1a202c;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
}

.card {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: none;
  margin: 0 auto;
  max-width: 500px;
}

.card-header {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: white;
  font-weight: 600;
  text-align: center;
  border-bottom: none;
  padding: 1.2rem;
}

.card-body {
  padding: 2rem;
}

.btn-warning {
  background: #f59e0b;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  width: 100%;
  margin-bottom: 10px;
}

.btn-warning:hover {
  background: #d97706;
  transform: translateY(-2px);
}

.btn-success {
  background: #10b981;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  width: 100%;
  margin-bottom: 10px;
}

.btn-success:hover {
  background: #059669;
  transform: translateY(-2px);
}

.qrcode-container {
  padding: 15px;
  background: white;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin: 15px 0;
  min-height: 200px;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-status {
  background: #edf2f7;
  padding: 15px;
  border-radius: 10px;
  margin: 15px 0;
  font-weight: 500;
  text-align: center;
}

.security-notice {
  color: #dc3545;
  font-weight: 600;
  text-align: center;
  margin: 15px 0;
  font-size: 14px;
  padding: 10px;
  background: #fff3f3;
  border-radius: 8px;
  border: 1px solid #ffb8b8;
}

.footer-info {
  text-align: center;
  padding: 20px 0;
  margin-top: auto;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  width: 100%;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.footer-link {
  display: flex;
  align-items: center;
  color: #6c757d;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-link img {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

.credit-img {
  max-width: 100px;
  margin: 10px auto;
  display: block;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

/* 响应式调整 */
@media (max-width: 576px) {
  .card-body {
    padding: 1.5rem;
  }
  
  .card-header h4 {
    font-size: 1.2rem;
  }
  
  .btn-warning, .btn-success {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-link {
    justify-content: center;
  }
}

/* 步骤指示器样式 */
.steps-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 30px 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #cbd5e0;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 5px;
}

.step.active .step-number {
  background-color: var(--primary-color);
}

.step-line {
  height: 3px;
  background-color: #cbd5e0;
  flex-grow: 1;
  margin: 0 10px;
}

.step-line.active {
  background-color: var(--primary-color);
}

.step-label {
  font-size: 14px;
  color: #a0aec0;
}

.step.active .step-label {
  color: var(--secondary-color);
  font-weight: bold;
}

/* 密码登录区域样式 */
.password-container {
  background-color: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
  text-align: center;
}

.password-form {
  max-width: 400px;
  margin: 0 auto;
}

.password-instructions {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: left;
}

.instructions-title {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  width: 100%;
  margin-bottom: 10px;
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
  color: white;
}

.error-message {
  color: #dc3545;
  margin-top: 10px;
  font-size: 14px;
}

.success-alert {
  background-color: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.hidden {
  display: none;
}

.qrcode-img {
  max-width: 200px;
  display: block;
  margin: 15px auto;
  border-radius: 8px;
  border: 1px solid #ddd;
}

#qrimg {
  font-size: 100px;
  color: var(--primary-color);
}