/* 登录模态窗口样式 */
.login-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.login-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-modal-header {
  padding: 30px 30px 0 30px;
  text-align: center;
  border-bottom: none;
}

.login-modal-header h4 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.login-modal-header p {
  margin: 8px 0 0 0;
  color: #666;
  font-size: 14px;
}

.close {
  position: absolute;
  right: 15px;
  top: 15px;
  color: #999;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close:hover,
.close:focus {
  color: #333;
  background-color: #f5f5f5;
}

.login-modal-body {
  padding: 20px 30px 30px 30px;
}

.login-form-group {
  margin-bottom: 20px;
}

.login-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.login-form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #fff;
}

.login-form-control:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.login-btn:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.login-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-error {
  color: #dc3545;
  font-size: 14px;
  margin-top: 10px;
  padding: 10px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  display: none;
}

.login-loading {
  display: none;
  text-align: center;
  margin-top: 15px;
}

.login-loading .spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
}

.remember-me {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.remember-me input[type="checkbox"] {
  margin-right: 8px;
}

.forgot-password {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* 下载体验按钮的显示控制 */
.btn-get-started {
  display: none; /* 默认隐藏，登录后通过JavaScript显示 */
}

/* 响应式设计 */
@media (max-width: 480px) {
  .login-modal-content {
    margin: 10% auto;
    width: 95%;
  }
  
  .login-modal-header,
  .login-modal-body {
    padding: 20px;
  }
} 